How to use property from property file specified in PropertyPlaceholderConfigurer in JSP

后端 未结 6 1748
渐次进展
渐次进展 2020-12-05 05:21

In my application context I have defined properties file:


6条回答
  •  被撕碎了的回忆
    2020-12-05 05:58

    ``
    

    Now this is your Properties File

    `site.name=Cool Bananas`
    

    And. Here goes your JSP

    `<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    
      
        <spring:message code="site.name"/>
      
      
      
    `
    

提交回复
热议问题