기본 콘텐츠로 건너뛰기

Mac 맥 맥북 m1 HomeBrew 설치하기

개발 패키지 툴?? 관리 편하게 하는 Brew를 설치함 공식 홈페이지는  https://brew.sh/ 1 / bin / bash  - c  "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" cs 터미널에서 해당 코드값 넣고 설치 설치 후 brew 쳐보기 1 2 ddoongmause@DDoongMauseui - MacBookPro ~ % brew      zsh: command not found: brew cs brew 설치가 완료되지 않음 터미널 잘 보면 1 2 3 4 5 6 7 = = >  Next steps: -  Run these two commands in your terminal to add Homebrew to your PATH:     ( echo ;  echo   'eval "$(/opt/homebrew/bin/brew shellenv)"' )  > >   / Users / ddoongmause / .zprofile     eval  "$(/opt/homebrew/bin/brew shellenv)" -  Run brew help to get started -  Further documentation:     https: / / docs.brew.sh Colored by Color Scripter cs 다음 스탭에 대해서 알려줌 1 2 3 ddoongmause@DDoongMauseui - MacBookPro ~ % ( echo ;  echo   'eval "$(/opt/homebrew/bin/brew shellenv)"' )  > >   / Users / ddoongmause / .zprofile ddoongmause@DDoongMauseui - MacBookPro ~ % eval  "$(/opt/homebrew/b

[Git]리눅스 centos ubuntu에 깃 저장소로 사용하기

깃 설치하고 해당 경로에 폴더를 만든후 git init --bare로 생성해주고 안되면 이걸로 설정 변경 git config --bool core.bare true git remote add origin ssh://ddoongmause@103.244.111.217/(경로)/git/hihi   로 푸시~ 참조(감사합니다) https://sdr1982.tistory.com/267 https://imitursa.tistory.com/3820

스프링 자바 JAVA 서버에서 URL 찾기

스프링 서버단에서 호출 URL 찾기 서버(spring)에서 호출 URL을 알아야 할때 유용할 듯 @Override      public   void  urlCheck(HttpServletRequest request, HttpServletResponse response) {          //이전 페이지의 정보를 알때 레퍼러를 활용(URL을 직접 치고 들어오는경우는 null)          String  referer  =  ( String ) request.getHeader( "REFEREER" );            //URL를 확인하는 방법         UrlPathHelper urlPathHelper  =   new  UrlPathHelper();          String  originalURL  =  urlPathHelper.getOriginatingRequestUri(request);            //스프링 시큐리티 로그인할떄 저장하는 캐시를 활용         RequestCache requestCache  =   new  HttpSessionRequestCache();         SavedRequest savedRequest  =  requestCache.getRequest(request, response);          String  redirectUrl  =  savedRequest.getRedirectUrl();             } Colored by Color Scripter cs 참고 감사합니다 https://blog.jiniworld.me/53 https://jang8584.tistory.com/86

스프링 시큐리티(Spring Security) 권한 없을때 여러 결과 페이지 설정하기

Spring Security의 인가 실패시 결과 커스텀하기 Java에서 config 설정 방법으로 남김 AccessDeniedHandler()를 커스텀 해야함 public   class  CustomAccessDeniedHandler  implements  AccessDeniedHandler {       @Override      public   void  handle(HttpServletRequest request, HttpServletResponse response, AccessDeniedException e)  throws  IOException, ServletException {          //스프링 시큐리티 로그인때 만든 객체         Authentication authentication  =  SecurityContextHolder.getContext().getAuthentication();          //현재 접속 url를 확인         UrlPathHelper urlPathHelper  =   new  UrlPathHelper();          String  originalURL  =  urlPathHelper.getOriginatingRequestUri(request);            //로직을 짜서 상황에 따라 보내줄 주소를 설정해주면 됨         response.sendRedirect( "/" );     } } Colored by Color Scripter cs config에 설정 @Override      protected   void  configure(HttpSecurity http)  throws  Exception {         http             .addFilterBefore(authenticationFilter(), UsernamePasswordSessionAuthenticationFilter. class )             .authorizeReque

Mac 맥 맥북 mySql [HY000][1449]The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

[HY000][1449]The user specified as a definer ('mysql.infoschema'@'localhost') does not exist 에러 발생시 터미널로 mysql접속한 후  DROP  USER  'mysql.infoschema' @ 'localhost' ;   CREATE  USER  'mysql.infoschema' @ 'localhost'  IDENTIFIED  BY   'password' ;   GRANT  SELECT   ON   * . *  TO  `mysql.infoschema` @ `localhost` ; cs 작성해서 새로 생성하면 문제해결~