gradle build skip test
gradle build -x test
- Programming/Java
- · 2020. 5. 4.
springboot 실행시 아래와 같은 에러 발생 java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from jar:file:/Users/user/workspace/aim/server/build/libs/aim-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/slf4j-log4j12-1.7.30.jar!/). If you are using WebLogic you ..
gradle build -x test
gradle build 중 node 관련 에러 node { download = false version = '12.16.1' } build.gradle 에 node option 중 donwload를 false로 변경하면 정상 동작한다.
@Value("${mail.port}") private int mailPort; @Value("${mail.id}") private String mailId; public Class() { System.out.println(mailPort); // null } @PostConstruct public void init() { System.out.println(mailPort); // 8080 } spring에서 위와같이 vlaue값을 생성자에서 쓰려고 하면 null 값이 나온다생성자 실행후에 각각의 값에 properties값들이 주입되기때문인데.. 이럴경우 @PostConstruct를 이용해서 초기화하면 주입된값을 정상적으로 사용할수 있다.
kubectl get pods | grep Error | cut -d' ' -f 1 | xargs kubectl delete pod 한번에 싹...
vuecli로 프로젝트 생성후 vue add vuetify 로 vuetify를 추가한후 실행했을때 아래와 같은 에러가 나왔을때 Could not find a declaration file for module 'vuetify/lib' Try `npm install @types/vuetify` if it exists or add a new declaration (.d.ts) file containing `declare module 'vuetify/lib';` typescript를 쓰고있는데 위와같이 에러가 나올경우 tsconfig.js >types 에 "veutify"를 추가하면 된다. "types": [ "webpack-env", "mocha", "chai", "vuetify" ],