./run.bash
mvn clean package
- 공백에 예민하니 todo-data:[공백]/var/lib.mysql에서 [공백]을 꼭 없애야 한다.
mysql:
...
volumes:
- todo-data:/var/lib/mysql
volumes:
todo-data:
docker volume ls
docker volume inspect spring-kata-1_todo-data
[SOF] Spring Boot: how to use multiple yml files
# import application-oauth.yml
spring.profiles.include: oauth
# application-oauth.yml
spring:
security:
oauth2:
client:
registration:
google:
client-id: << GOOGLE CLIENT ID >>
client-secret: << GOOGLE CLIENT SECERT >>
scope: profile,email
[Spring] 스프링으로 OAuth2 로그인 구현하기3 - 카카오
Entity 클래스에 @NoArgsConstructor 추가
@NoArgsConstructor
- Lombok Mapstruct Binding의존성 추가 ( Lombok 1.18.16 버전 이상 )
- plugin > 어노테이션 세팅 부분에서 lombok, mapstruct, lombok-mapstruct 순으로 배치
- target 폴더 지우고 다시 mvn install 혹은 mvn package로 jar파일 다시 만들기
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>0.2.0</version>
</dependency>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${org.projectlombok.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
<!-- This is needed when using Lombok 1.8.16 and above -->
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>${version.mapstruct-lombok}</version>
</path>
<!-- other annotation processors -->
</annotationProcessorPaths>
Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter for [class me.arthur.todo.api.ApiResult] with preset Content-Type 'null']
- jackson-dataformat-xml 의존성 추가
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>2.12.3</version>
</dependency>
docker kill $(docker ps -q)
docker rm $(docker ps -a -q)
command:
- --character-set-server=utf8
- --collation-server=utf8_general_ci
- VO에 빈 생성자 추가