반응형 java30 스프링부트 로그레벨 변경 application.properties에 로그레벨을 다 설정하고 나서 라이브 환경에 적용해놓은 상황에서 부트 실행시 로그레벨 변경하는 방법에 대해서 정리한다. 패키지명 : com.karint, aa.bb 1. 환경변수 설정 export LOGGING_LEVEL_COM_KARINT=DEBUG export LOGGING_LEVEL_AA_BB=DEBUG java -jar ./target/libs/spring.jar 2. JVM OPTION 설정 java -jar -Dlogging.level.com.karint=DEBUG -Dlogging.level.aa.bb=DEBUG ./target/libs/spring.jar 출처 : https://docs.spring.io/spring-boot/docs/2.1.9.RE.. 2020. 5. 20. gradle_user_home 디렉토리 설정 출처 https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_environment_variables Build Environment Configuring an HTTP or HTTPS proxy (for downloading dependencies, for example) is done via standard JVM system properties. These properties can be set directly in the build script; for example, setting the HTTP proxy host would be done with System.setPrope docs.gradle.org 별도로 gr.. 2020. 4. 23. Springboot change timezone Spring boot 실행시 timezone 변경 Springboot 구동 완료시 기본 timezone을 설정 @EnableAutoConfiguration public class SeaSpringApplication { private static final String timeZone = "Asia/Singapore"; @PostConstruct public void init(){ // java.util.Date default timezone setting TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); // joda.time.DateTime default timezone setting DateTimeZone.setDefault(DateTimeZone.get.. 2020. 4. 21. spring boot cannot find main class STS에서 boot dashboard를 이용하여 어플리케이션을 실행했는데 아래와 같은 메시지가 출력되면서 실행이 안됨 기본 클래스 xxx.yyyy.bbb.Application 찾거나 로드할 수 없습니다. 작업한건 gradle 에서 라이브러리 몇개 추가한거 밖에 없는데 불과 1분전에 구동된 서버가 구동이 안됨 이리 저리 삽질을 하다가 6시간 뻘짓을 하다가 구글링으로 찾아냄 https://stackoverflow.com/questions/28451120/spring-boot-program-cannot-find-main-class/52005196#answer-60035629 Spring Boot Program cannot find main class I have a program which runs as a .. 2020. 3. 18. 이전 1 ··· 3 4 5 6 7 8 다음 반응형