본문 바로가기

분류 전체보기

(96)
톰캣 로그 한글깨짐 톰캣설치 경로이동 conf파일 > logging.properties 파일에서 수정. 코드 하단에 "java.util.logging.ConsoleHandler.encoding = UTF-8" 부분 java.util.logging.ConsoleHandler.encoding = EUC-KR UTF-8 → EUC-KR 로 수정
[intellij] 테마변경 [File] → [Setting] → Apperarance & Behavior > Appearance 에서 Theme 변경
스프링부트 로그파일 생성 @SpringBootApplication public class PetClinicApplication { private static final Logger logger = LoggerFactory.getLogger(PetClinicApplication.class); public static void main(String[] args) { logger.info("log 확인!"); SpringApplication.run(PetClinicApplication.class, args); } } ① 로그파일 생성 ① - ⒜ 프로젝트 main > resources > application.properties 아래에 spring.profiles.active=local logging.config=classpath:lo..
예제로 배우는 스프링 입문 (개정판)_백기선 강의 수업 정리 ① 인텔리제이 설치 https://www.jetbrains.com/ko-kr/idea/download/other.html → IntelliJ IDEA Ultimate 2020.1.4 - Windows x64 (exe) 으로 설치 진행 ② 깃(git)설치 https://git-scm.com/download/win Git - Downloading Package Download for Windows Click here to download the latest (2.38.1) 32-bit version of Git for Windows. This is the most recent maintained build. It was released 25 days ago, on 2022-10-18. Oth..
[MYSQL] Authentication method 'caching_sha2_password' not supported by any of the available plugins. , mysql can't connect to mysql server on 'localhost' (10061) MYSQL 설치시 위와 같은 에러가 발생 mysql can't connect to mysql server on 'localhost' (10061) : MYSQL 서비스가 실행되지 않아서 생긴 에러 내가 서비스가 실행되지 않았던 이유는 (Authentication method 'caching_sha2_password' not supported by any of the available plugins.) 해당 에러로 실행되지 않음. 버전 8에서 보안 이슈등으로 생긴 이슈 MYSQL my.ini 폴더에서 default_authentication_plugin=mysql_native_password 한줄 추가 (위 my.ini폴더에서 위 한줄 추가시 utf-8 로 저장시 이슈가 있어 anai로 변경 후 서비스 재..
[Mysql] Function 에러 : This function ha none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and bin... Mysql Version 5에서 8로 버전 업데이트시 위와 같은 에러가 이슈가 났음. SHOW global variables LIKE 'log_bin_trust_function_creators'; 로 조회후 value 값이 OFF 일 경우 SET GLOBAL log_bin_trust_function_creators = ON; ON 상태값으로 변경
[Mysql] 덤프 IMPORT, EXPORT Mysql 설치 파일 bin폴더로 이동 후 [IMPORT] mysql -u아이디 -p비밀번호 디비명 덤프 내보낼 위치.sql;
[MYSQL] UPDATE SELECT 같은 TABLE의 수정 SELECT * FROM TABLE1 t1 WHERE 1=1 [ TABLE1 ] seq name value etc 1 num1 1 null 2 num2 2 null TABLE1 의 name 값이 num1일때 → value 값을 "11"로 name 값이 num2일때→ value 값을 "22"로 변경시 UPDATE TABLE1 t1, (SELECT seq, (CASE WHEN name = 'num1' THEN 11 WHEN name = 'num2' THEN 22 ELSE 0 END) AS new_value FROM TABLE1 ) t2 set t1.value = t2.new_value where t1.seqid = t2.seqid
[React] yarn add 여러개 하나하나가 아닌 한꺼번에 설치하고싶을경우 yarn add 이름 이름 이름 뒤에 띄어쓰기로 연결시켜준뒤 실행
[Spring Boot ]Scheduled + cron @SpringBootApplication @EnableScheduling // 스케줄러 사용을위해서 작성 public class Application{ ////...코드작성 } @Scheduled와 크론을 이용해서 시간및 날짜 지정 @Scheduled(cron="0 0 06 28 * *") // 28일 06시에 실행 public void scheduleDaemon() { System.out.println("28일 06시에 실행"); ..... }