@PropertySource not have the properties file is loaded into the container

The question I began also very depressed, want to play springpure notes arranged, did not expect to start suffered a Waterloo, is in use @PropertySourcewhen on the main configuration class specified configuration file does not give me a loaded into the container, resulting in the use @Valuepass when annotations addpiece is that with a ${}string

Start is puzzling how this is so, finally found his Springversion 4.x and 5.x version replaced on the line.

Released three original articles · won praise 0 · Views 149

Guess you like

Origin blog.csdn.net/qq_44377333/article/details/104771254