기본 콘텐츠로 건너뛰기

[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 작성해서 새로 생성하면 문제해결~

Mac 맥 맥북 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 에러 해결

REMOTE HOST IDENTIFICATION HAS CHANGED 에러 해결 이렇게 에러가 남 1 2 3 4 5 6 7 8 9 10 11 12 13 14 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED !      @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY ! Someone could be eavesdropping on you right now (man - in - the - middle attack) ! It is also possible that a host key has just been changed. The fingerprint  for  the ECDSA key sent by the remote host is SHA256:(숨김) Please contact your system administrator. Add correct host key in  / Users / ddoongmause / .ssh / known_hosts to get rid of this message. Offending ECDSA key in  / Users / ddoongmause / .ssh / known_hosts: 1 ECDSA host key  for  dev.ddoongmause.co.kr has changed and you have requested strict checking. Host key verification failed. Colored by Color Scripter cs  맥북을 포맷하고 ssh저장한걸 가져오니까 나던 오류라서 아마 맥정보가 바껴서 난거 같음 sudo rm ~ / .ssh / known_hosts cs 방법은 여러가지가 있지