Spring Data REST에서 Hal-Browser를 사용할 수 없음
5995 단어 SpringDataRestspring-boot
dependencyManagement에서 org.springframework.data:spring-data-rest-hal-browser를 사용할 수 없음
dependencyManagement 태스크를 실행하면,,
org.springframework.data:spring-data-rest-hal-browser
없음 org.springframework.data:spring-data-rest-hal-explorer
가 있다 분명히,
org.springframework.data:spring-data-rest-hal-explorer
로 바뀌고 있는 모양.매뉴얼에서는,
org.springframework.data:spring-data-rest-hal-browser
사용할 수 있는 것이지만···. 잘 모르겠어요.특별히 고집도 없기 때문에,
org.springframework.data:spring-data-rest-hal-explorer
를 depenceies 에 추가하면 사용할 수 있다.아래 해결 후 build.gradle.
plugins {
id 'java'
id 'application'
id 'maven'
id "io.freefair.lombok" version "5.3.0"
id "org.flywaydb.flyway" version "7.3.2"
id "org.springframework.boot" version "2.4.1"
id "io.spring.dependency-management" version "1.0.10.RELEASE"
}
dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-data-rest"
implementation "org.springframework.data:spring-data-rest-webmvc"
implementation "org.springframework.data:spring-data-rest-hal-explorer"
// implementation "org.springframework.data:spring-data-rest-hal-browser"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
implementation "org.flywaydb:flyway-core"
implementation "com.zaxxer:HikariCP:3.4.0"
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.2.2'
implementation "com.influxdb:influxdb-client-java:1.0.0"
implementation group: 'commons-collections', name: 'commons-collections', version: '3.2.1'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3'
// ------------ test -------------
testImplementation ('org.springframework.boot:spring-boot-starter-test:2.2.1.RELEASE') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'com.h2database:h2'
}
결과
Reference
이 문제에 관하여(Spring Data REST에서 Hal-Browser를 사용할 수 없음), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/OmeletteCurry19/items/2bee740499168fcfdd55텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)