• 로그인 함 해보끄나?

  • Sarangnamu.net June 17, 2003
    Home Login Profile Study Open Project Q&A Google Code
    util properties
    Last Modify : 25 July, 2017(10:02)
    beans 에 다음 추가 xmlns:util=" http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.1.xsd" 경로 설정 <util:properties id="fileAccessProps" location="classpath:file-access.xml" /> xml 설정 (경로는 src/main/resources) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM " http://java.sun.com/dtd/properties.dtd"> <properties>     <comment>         <![CDATA[]]>     </comment>          <entry key="key">./value</entry> </properties> 컨트롤러에 사용 @Value("#{fileAccessProps['key']}") private String key;

    Comment


    입력하3 1508772417



    Locations of visitors to this page