일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- SpringBootApplication
- javascript image slider
- kotest
- c++ 빌드
- Java Wrapper Class
- hashcode override
- github CI
- list remove
- vanilla js image slider
- github action codedeploy
- github CI/CD
- Java
- java hashCode
- equals override
- image slider
- java 비동기처리
- equals
- AWS Codedeploy
- Github action deploy
- Spring Aspect
- github ec2 deploy
- Java lombok
- lombok Builder
- github deploy
- stream groupingby
- github action
- AliasFor
- java CompletableFuture
- java stream api
- 코드포스
- Today
- Total
목록Spring (3)
기록창고
@Controller 와 @Service 의 차이는 무엇일까? 스프링 부트에서 어노테이션으로 @Controller 와 @Service가 붙는다. 차이는 ..? 어노테이션의 소스를 보면 이름만 다르고 코드는 똑같다. 그래서 service 에 controller 붙여도 되긴 된다. Service 어노테이션 @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @Component public @interface Service { @AliasFor(annotation = Component.class) String value() default ""; } Controller 어노테이션 @Target({ElementType.TYPE})..
개인프로젝트 중 전적을 조회할때, 중복된 로직이 존재했다. 게임사의 API를 통하여 데이터를 가져오기때문에 데이터를 가져오기전, 해당 ID 가 존재하는지 부터 확인을 해야한다. 전적 관련 API가 여러가지 존재하는데 (캐릭터, 랭크, 일반 등) 이 모든 API 호출함수에는 아이디를 체크하는 로직이 들어간다..... public List getOperatorList(String id) { Profile profile = getProfile(id); // 아이디가 있는지 확인하는 부분 및 고유 ID 로 변환 /* 데이터 가져오고 파싱하는 부분 */ } public RankStatDto getRankStat(String id, ~) { Profile profile = getProfile(id); // 아이디가..
Many Spring Boot developers like their apps to use auto-configuration, component scan and be able to define extra configuration on their "application class". A single @SpringBootApplication annotation can be used to enable those three features, that is: @EnableAutoConfiguration: enable Spring Boot’s auto-configuration mechanism @ComponentScan: enable @Component scan on the package where the appl..