본문 바로가기

프로그래밍/Spring

(7)
[링크] Spring WebFlux와 Armeria를 이용하여 Microservice에 필요한 Reactive + RPC 동시에 잡기 https://d2.naver.com/helloworld/6080222?utm_source=gaerae.com&utm_campaign=%EA%B0%9C%EB%B0%9C%EC%9E%90%EC%8A%A4%EB%9F%BD%EB%8B%A4&utm_medium=social
AWS + Spring boot + Java + Oauth + Mustache + JPA (sample project) https://github.com/sungyoungKwon85/sampleWeb sungyoungKwon85/sampleWeb Contribute to sungyoungKwon85/sampleWeb development by creating an account on GitHub. github.com Java 8 Spring boot 2.1.7 Gradle jpa h2 lombok mustache oauth2 (Google, naver)
REST API sample With Kotiln https://github.com/sungyoungKwon85/spring-kotlin sungyoungKwon85/spring-kotlin Contribute to sungyoungKwon85/spring-kotlin development by creating an account on GitHub. github.com 코틀린 마이크로서비스 개발 (후안 안토니오 메디나 이글레시아스) 책 실습 소스
String(date foramt) in Json to LocalDateTime JSON안에 아래와 같은 값이 들어있다. { "date-time": "2019-09-27T20:30:00+09:00"} 아래의 Pojo에 자동으로 Converted 될거라고 기대하고 쭉 돌려본다. public class MyParameter { @JsonProperty(value = "date-time") ZonedDateTime dateTime; } 두둥... 아래와 같이 에러 메시지가 발생했다 . Cannot construct instance of `java.time.ZonedDateTime` (no Creators, like default construct, exist): no String-argument constructor/factory method to deserialize from Strin..
Spring AOP 출처:https://jeong-pro.tistory.com/171https://blog.hanumoka.net/2018/09/01/spring-20180901-spring-AOP-summary/https://heowc.dev/2018/02/07/spring-boot-aop/https://www.baeldung.com/spring-aop-vs-aspectjhttps://gmun.github.io/spring/aop/2019/04/20/jdk-dynamic-proxy-and-cglib.htmlhttps://tram-devlog.tistory.com/entry/Spring-AOP-weaving-proxy AOP(Aspect Oriented Programming) 는 관점지향 프로그래밍 라고 할 수 있다. Sp..
Annotation 정리 잘 정리된 블로그! 출처:https://effectivesquid.tistory.com/entry/Bean-%EA%B3%BC-Component%EC%9D%98-%EC%B0%A8%EC%9D%B4 1.@Bean vs @Component @Bean외부 라이브러리들을 Bean으로 등록하고 싶은 경우에 사용public class RedisConfig { private @Value("${spring.redis.host}") String redisHost; private @Value("${spring.redis.port}") int redisPort; private @Value("${spring.redis.password}") String password; @Bean public JedisPoolConfig jedi..
Filter & Interceptor Filter, Interceptor 웹 프로그래밍을 하다보면 컨트롤러에 도달하기전 전처리가 필요한 경우가 있다. 후처리일수도 있고.. 가령.. 회원 인증 여부를 체크하고 싶다던가, 개인정보 보호를 위해 로그 기능을 끄고 싶다던가..권한 체크..Cross Site Script(XSS) 방어..PC/Mobile web 분기..인코딩 변환... 등등등 공통적인 기능들은 각 컨트롤러에서 할게 아니라 전처리 또는 후처리를 해주면 매우 좋다. 그럼 컨트롤러에 도달하기 전에 어떤 레이어가 있을까?Spring MVC life cycle를 검색해보면 아래와 같은 그림을 볼 수 있다. 출처: https://all-record.tistory.com/164 [세상의 모든 기록]> Request가 들어오면 Filter를 맨 먼..