0
그것은 이상하다하지만 설정봄 REST 저장소는
spring:
data:
rest:
default-media-type: application/json
detection-strategy: annotated
및 클래스
@RepositoryRestResource
public interface RestRestaurantRepo extends CrudRepository<Restaurant, Long> {
}
에 봄 부팅 다음 봄 데이터 나머지에있을 때 노출되지 않은 노출되지. 내가
spring:
data:
rest:
detection-strategy: annotated
또는 같은 설정 소품에서 떠나 어떤 설정으로 변경할 때 :
spring:
data:
rest:
default-media-type: application/json
그것을 작동합니다. 이것에 대해 무엇을 할 수 있습니까?