Recent Posts
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 | 31 |
Tags
- pytest
- 헥사고날아키텍처 #육각형아키텍처 #유스케이스
- JanusGateway
- PytestPluginManager
- preemption #
- table not found
- mp4fpsmod
- 겨울 부산
- python
- VARCHAR (1)
- 오블완
- 코루틴 빌더
- 자원부족
- vfr video
- Value too long for column
- 코루틴 컨텍스트
- taint
- tolerated
- 달인막창
- kotlin
- JanusWebRTCServer
- Spring Batch
- 티스토리챌린지
- JanusWebRTC
- 깡돼후
- terminal
- JanusWebRTCGateway
- 개성국밥
- PersistenceContext
- addhooks
Archives
너와 나의 스토리
HATEOAS 설정하기 - swagger와 함께 사용하기 (에러 해결) 본문
반응형
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'junit:junit:4.12'
implementation 'com.google.code.gson:gson:2.8.5'
compileOnly 'org.projectlombok:lombok'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.6'
compile 'com.h2database:h2'
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
compile("org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE")
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
// spring security
compile('org.springframework.boot:spring-boot-starter-security')
testCompile('org.springframework.security:spring-security-test')
// swagger
implementation group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
}
Error1. "The following method did not exist: 'org.springframework.plugin.core.PluginRegistry org.springframework.plugin.core.PluginRegistry.of(java.util.List)'"
-> [ compile("org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE") ] 추가
-> swagger configuration에 다음의 Bean 추가
@Bean
public LinkDiscoverers discoverers() {
List<LinkDiscoverer> plugins = new ArrayList<>();
plugins.add(new CollectionJsonLinkDiscoverer());
return new LinkDiscoverers(SimplePluginRegistry.create(plugins));
}
Error2. "Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration required a single bean, but 15 were found:"
-> [ implementation 'org.springframework.data:spring-data-rest-hal-browser' ]를 지워보자.
참고 링크:
- https://stackoverflow.com/questions/58431876/spring-boot-2-2-0-spring-hateoas-startup-issue
반응형
'개발 > Spring Boot' 카테고리의 다른 글
Spring DI, CI (0) | 2020.08.23 |
---|---|
Spring security - 용어 정리/작동 방식/JWT (0) | 2020.08.22 |
URL Design (0) | 2020.07.25 |
[Spring security] "*.permitAll()"을 해도 post가 안된다면 (1) | 2020.07.17 |
import org.h2.server.web.WebServlet; 에러나는 경우 해결법 (0) | 2020.07.10 |
Comments