How to show values from property file in JSP in a spring MVC app

后端 未结 5 828
孤街浪徒
孤街浪徒 2020-12-04 20:14

I\'m setting my properties in app-servlet.xml with a bean like this:

    

        
5条回答
  •  悲哀的现实
    2020-12-04 20:38

    What you can also do that doesn't tie you to looking up properties in a single property placeholder, or if you are using java config and just instantiating a PropertySourcesPlaceholderConfigurer is use the environment object:

    
    

提交回复
热议问题