遵循这些人的建议:http : //blog.preleak.pl/2013/11/how-to-propertysource-
annotations-in.html
尝试:
@PropertySources(value = {@PropertySource("classpath:application.properties")})然后用酱油取胜。

遵循这些人的建议:http : //blog.preleak.pl/2013/11/how-to-propertysource-
annotations-in.html
尝试:
@PropertySources(value = {@PropertySource("classpath:application.properties")})然后用酱油取胜。