반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- easy
- OpenFeign
- Java 1.8
- LeetCode
- java version
- java 버전 변경
- JUnit
- yum install java
- springboot
- aws
- log error
- Medium
- AWS CLI
- el1008e
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- java 11
- 스프링부트테스트
- maybe not public or not valid?
- java 여러개 버전
- springboottest
- java
- springbatch error
- property or field 'jobparameters' cannot be found on object of type
- error
- parse
- No tests found for given includes
- java 1.8 11
- mac os git error
- no sources given
- querydsl no sources given
Archives
- Today
- Total
목록springboot init (1)
쩨이엠 개발 블로그
[ Spring ] spring init 초기화 메소드 @PostConstruct
Class에서 초기화 메소드를 실행하고 싶다 @Service public class DataService { static Map qcPopMap; static Map qcItemMap; static List qcCycleList; DataService(){ initMap(); } private void initMap(){ qcStepConfigMap = new HashMap(); qcTargetDataMap = new HashMap(); qcCycleList = new ArrayList(); } } 예전이라면 생성자를 만들어서 그 안에다 집어넣어서 초기화를 시켜줄 수 있었다 DataService(){ initMap(); } 생성자로 init을 하고싶지 않다면 @PostConstruct를 사용한다 @Ser..
개발/Spring
2020. 7. 1. 17:52