본문 바로가기

Study_Framework33

[Spring] 다국어 처리 @Configuration public class LocaleConfig implements WebMvcConfigurer { @Bean public LocaleResolver localeResolver() { SessionLocaleResolver resolver = new SessionLocaleResolver(); resolver.setDefaultLocale(Locale.ENGLISH); return resolver; } @Bean public LocaleChangeInterceptor localeChangeInterceptor() { LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor(); localeChan.. 2018. 5. 5.
[Spring] 스프링 프로필 가져오기 [자바에서 현재 Active Profile 정보 가져오기] [이클립스에서 Active Profile 설정] [Web.xml 설정] 참고 URL : http://jdm.kr/blog/81 2016. 9. 6.
[Spring] 스프링 부트에서 외부 톰캣 사용하기 # Application.java 수정 # pom.xml 추가 org.springframework.boot spring-boot-starter-tomcat provided # Project Facets 수정 2016. 8. 9.
[Spring] Annotation 정리 @Controller: 스프링의 컨트롤러 객체임을 명시하는 annotation.(클래스에서 사용) @Repository: DAO 객체(클래스에서 사용) @Service: 서비스 객체(클래스에서 사용) @RequestMapping: 특정 URI에 매칭되는 클래스 또는 메소드 임을 명시하는 annotation(클래스와 메소드에서 사용) @RequestParam: request에서 특정한 파라미터의 값을 찾아낼 때 사용하는 annotation(파라미터에서 사용) @RequestHeader: request에서 특정 HTTP 헤더 정보 추출 시에 사용하는 annotation(파라미터에서 사용) @PathVariable: 현재의 URI에서 원하는 정보를 추출 시에 사용하는 annotation(파라미터에서 사용) @.. 2016. 8. 6.