Original link:
http://www.cnblogs.com/cuijiade/p/8707418.html
First, demand
@Value comment to read properties file
If you want Controller to use this annotation to read the properties file attribute, then the need to introduce this document in the configuration file, note applicationContext.xml and springmvc these two profiles need to be configured, if springmvc do not configure the output will be is the string $ {send.myemail}
Second, the problem is solved
Remember to configure two places ah! Otherwise, it can only output the selected local blue on the map! ! !
Reproduced in: https: //www.cnblogs.com/cuijiade/p/8707418.html