본문 바로가기

Dev24

[Spring Boot/JPA] hibernate.ddl-auto 옵션으로 서버를 실행할 때마다 DB 초기화하기 JPA로 DB를 초기화하는 방법은 두 가지가 있다. spring.jpa.generate-ddl (boolean) switches the feature on and off and is vendor independent. spring.jpa.hibernate.ddl-auto (enum) is a Hibernate feature that controls the behavior in a more fine-grained way. This feature is described in more detail later in this guide. 여기서 2. spring.jpa.hibernate.ddl-auto를 통해 DB 초기화 전략을 만들 때 사용할 수 있는 옵션 값은 none, update, validata, cre.. 2019. 9. 13.
Multi-Thread 환경에서 Spring Bean의 Thread Safe 문제 해결 증상 Netty Server로 받아온 전문을 파싱하는 과정에서 시작점이 자꾸 바뀌어 정상적으로 파싱이 되지 않고 Exception이 발생한다. Single Thread로 설정하여 테스트하면 이러한 현상이 발생하지 않으며 Multi Thread 환경에서 테스트하면 함께 진행되는 다른 Thread의 값과 묘하게 연관 있게 바뀐다. 로그 nioEventLoopGroup7-7 & nioEventLoopGroup-7-8 [nioEventLoopGroup-7-7] Parse item key = MESSAGE_1, type=String, from=220, len=2, value=ne [nioEventLoopGroup-7-8] Parse item key = message_1, type=Long, from=0, len=.. 2019. 9. 2.
MSA(마이크로서비스 아키텍처)의 정의, 고려사항 MSA(마이크로서비스 아키텍처) In short, the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimu.. 2019. 9. 1.
[IntelliJ/Gradle] unmappable character for encoding MS949 해결 (UTF-8로 build task 실행) Command⌘ + Shift⇧ + A(Windows는 Ctrl+Shift+A)로 action/option 검색창을 열고 "Gradle Settings"를 검색 Gradle Settings 열기 Gradle VM Options에 -Dfile.encoding=UTF-8 추가 2019. 8. 30.