SpringBoot unknown property in application.properties

Nunyet de Can Calçada picture Nunyet de Can Calçada · Apr 22, 2017 · Viewed 33.3k times · Source

I've generated a Spring Boot web application using Spring Initializr, using embedded Tomcat + Thymeleaf template engine.

I put this property in my application.properties

[email protected]

I am using Spring Tool Suite Version: 3.8.4.RELEASE as a development environment, but I got this warning in the Editor 'default.to.address' is an unknown property.

Should I put this property in another property file ?

Answer

Darren Forsythe picture Darren Forsythe · Apr 22, 2017

It's because it's being opened by the STS properties editor which validates properties amongst other things. There's no harm in having it in the application.properties file, you can even add your own meta-data for the property.

http://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html