본문 바로가기

스프링12

Mybatis 쿼리 바인딩 로그 출력 1. Interceptor.java 설정 package secretary.common.util; import java.lang.reflect.Field; import java.sql.Statement; import java.util.List; import java.util.Map; import java.util.Properties; import org.apache.ibatis.executor.statement.StatementHandler; import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.ParameterMapping; import org.apache.ibatis.plugin.Interceptor; import org.. 2020. 8. 24.
MessageBundle DB로 전환 1. 테이블 생성 --테이블 생성 CREATE TABLE ST_COM_MESSAGE( ID bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', CREATE_DATE TIMESTAMP DEFAULT NOW() COMMENT '생성일', CREATE_USER VARCHAR(50) COMMENT '생성자', UPDATE_DATE TIMESTAMP COMMENT '수정일', UPDATE_USER VARCHAR(50) COMMENT '수정자', DELETE_YN VARCHAR(1) DEFAULT 'N' COMMENT '삭제여부', MESSAGE_CODE VARCHAR(100) COMMENT '메시지코드', LABLE_KO VARCHAR(100) COMMENT '.. 2020. 8. 23.
jsp 태그 설정 1. TAG 설정 1-1) tospan.tag ♥♥ 1-2) dynamicSelect.tag 2. JSP 설정 hello 2020. 8. 12.
Spring 다국어 적용 1. servlet-context.xml 2. Controller 설정 private org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MainController.class); @Autowired SessionLocaleResolver localeResolver; @Autowired MessageSource messageSource; @RequestMapping(value = "/i18n.do", method = RequestMethod.GET) public String i18n(Locale locale, HttpServletRequest request, Model model) { // RequestMapingHandler로 부터 받은 Locale.. 2020. 8. 11.