소개
게시글
질문&답변
2021.09.06
application.properties로는 어떻게 해야 할까요??
*************************** APPLICATION FAILED TO START *************************** Description: Binding to target [Bindable@176555c type = java.util.List, value = 'provided', annotations = array[@javax.validation.constraints.NotEmpty(message="{javax.validation.constraints.NotEmpty.message}", groups={}, payload={}), @javax.validation.Valid()]] failed: Property: spring.cloud.gateway.routes[0].predicates[0].path Value: /first-service/** Origin: class path resource [application.properties] - 10:51 Reason: The elements [spring.cloud.gateway.routes[0].predicates[0].path] were left unbound. Action: Update your application's configuration
- 0
- 3
- 930
질문&답변
2021.09.06
application.properties로는 어떻게 해야 할까요??
spring.application.name=apigateway-service spring.cloud.gateway.routes[0].id=first-service spring.cloud.gateway.routes[0].uri=http://localhost:8081 spring.cloud.gateway.routes[0].predicates[0].Path=/first-service/** spring.cloud.gateway.routes[1].id=second-service spring.cloud.gateway.routes[1].uri=http://localhost:8082 spring.cloud.gateway.routes[1].predicates[0].Path=/second-service/** 입니다.. server.port같은 단순한 부분은 되는데 predicates[0].path가 문제 인것 같습니다.
- 0
- 3
- 930
질문&답변
2020.10.15
Member 테이블이 생성되지 않습니다..
자문 자답입니다. datasorce 라고 썼었네요...ㅎㅎㅎ datasource 로 고치니 정상 동작합니다 :)
- 0
- 4
- 305
질문&답변
2020.10.15
Member 테이블이 생성되지 않습니다..
p6spy까지 추가하고 log를 보니까 2020-10-15 22:53:33.087 INFO 27012 --- [ main] p6spy : #1602770013087 | took 6ms | statement | connection 4| url jdbc:h2:mem:testdb memory모드로 testdb로 붙었다고 나오네요..; application.yml 파일은 아래와 같습니다. spring: datasorce: url: jdbc:h2:tcp://localhost/~/jpashop username: sa password: driver-class-name: org.h2.Driver jpa: hibernate: ddl-auto: create properties: hibernate: # show_sql: true format_sql: true logging: level: org.hibernate.SQL: debug org.hibernate.type: trace
- 0
- 4
- 305