스프링12 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. 커스텀 태그 1. /WEB-INF/taglib/customTag.tld 설정 0.0 customTag http://customTag.com kangspan secretary.common.taglib.CustomTag scriptless color true true java.lang.String iterNum true true java.lang.Integer 2. CustomTag.java 설정 package secretary.common.taglib; import java.io.IOException; import java.io.StringWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import j.. 2020. 4. 19. 이전 1 2 3 다음