spring15 Spring message ResourceBundle 설정 1. servlet-context.xml 설정 2. message_ko.properties 설정 LABEL.APPNAME = 만세만세 3. jsp 설정 Hello World!! LABEL.APPNAME : 2020. 8. 11. Spring property 암호화 (jasypt) 1. POM.xml 설정 org.jasypt jasypt ${org.jasypt-version} org.jasypt jasypt-spring31 ${org.jasypt-version} 2. mysql password 암호화 public void encryptTest() { StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor(); encryptor.setPassword("encryptpassword"); encryptor.setAlgorithm("PBEWithMD5AndDES"); // encryptor.setSaltGenerator(new StringFixedSaltGenerator("someFixedSalt")); String s.. 2020. 8. 11. util:properties 설정 1. root-context.xml 설정 1-1) util 설정 2. config.properties 작성 #DB mysql.username = SECKIM #text props.name = kangong 3. xml에서 사용법 4. java에서 사용법 @Value("#{configProperties['props.name']}") private String PROPS_NAME; 5. jsp에서 사용법 2020. 8. 10. Tiles 설정 1. POM.xml 설정 org.apache.tiles tiles-servlet ${org.apache.tiles-version} org.apache.tiles tiles-api ${org.apache.tiles-version} org.apache.tiles tiles-jsp ${org.apache.tiles-version} org.apache.tiles tiles-core ${org.apache.tiles-version} org.apache.tiles tiles-template ${org.apache.tiles-version} 2. servlet-context.xml 설정 classpath:/spring/tiles/tiles-def.xml 3. tiles-def.xml 설정 4. jsp 설정 4-1) .. 2020. 8. 10. 이전 1 2 3 4 다음