Closed fasoal closed 6 years ago
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "timestamp" (class org.springframework.cloud.config.environment.Environment), not marked as ignorable (6 known properties: "state", "propertySources", "label", "version", "profiles", "name"]) at [Source: {"timestamp":1536300338014,"status":404,"error":"Not Found","message":"No message available","path":"/selfAnalysisPlatform/dev/master"}; line: 1, column: 136] (through reference chain: org.springframework.cloud.config.environment.Environment["timestamp"])
其中pom中配置
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <maven.deploy.skip>true</maven.deploy.skip> <maven.test.skip>true</maven.test.skip> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <version.java>1.8</version.java> <!--scca version--> <version.scca>1.0.0-RELEASE</version.scca> <!--dependencies version--> <version.spring-boot>1.5.14.RELEASE</version.spring-boot> <version.spring-cloud>Edgware.SR3</version.spring-cloud> </properties>
bootstrap.properties
spring.application.name=scca-server server.port=10032 # scca-rest-server api url prefix scca.rest.context-path=/xhr # scca-ui-server embed scca-rest-server scca.ui.use-embed-scca-rest-server=true # eureka registry address eureka.client.serviceUrl.defaultZone=http://*:8762/eureka/ # Datasource spring.datasource.url=* spring.datasource.username=* spring.datasource.password=* spring.datasource.driver-class-name=com.mysql.jdbc.Driver # swagger swagger.base-path=/xhr/** # embed config server # warning : create env set contextPath spring.cloud.config.server.prefix=/scca-config-server encrypt.key=didispace
环境配置的时候,配置中心的访问前缀配置/scca-config-server了吗?
确实没加 加了就好使了
其中pom中配置
bootstrap.properties