728x90 반응형 IT/Spring Boot60 MessageSource, ObjectMapper, MessageSourceAccessor, Validator ■ MessageSource 1) 국제화(i18n)을 제공하는 인터페이스 2) 메세지 설정 파일을 모아놓고 각 국가마다 로컬라이징을 함 https://engkimbs.tistory.com/717 [Spring] 메세지소스(MessageSource)를 통한 메세지 국제화, 메세지 소스 리로딩(MessageSource Reloading) | 스프링 메세지소스(Spring MessageSource) 스프링 메세지 소스(Spring MeesageSource)는 국제화(i18n)을 제공하는 인터페이스다. 메세지 설정 파일을 모아놓고 각 국가마다 로컬라이징을 함으로서 쉽게 각 engkimbs.tistory.com ■ ObjectMapper 1) 텍스트 형태의 JSON을 object로 변경해 주거나 object를 텍.. 2022. 9. 26. @JSonIgnore 어노테이션 데이터를 주고 받을때, 결과값에 포함되지 않도록 하는 어노테이션임. 아래글 참조. https://kkangdda.tistory.com/40 RESTful(5) - @JsonIgnore @JsonIgnore을 붙이면 데이터를 주고 받을 때 해당 데이터는 'Ignore'되어서 아래의 결과창처럼 응답값에 보이지 않게 된다 public class Login { private String uId; @JsonIgnore private String uPw; // pw 숨.. kkangdda.tistory.com 2022. 9. 23. ORACLE 접속을 위한 build.gradle의 dependencies와 application.properties, mybatis-config.xml ========================= build.gradle ======================================= runtimeOnly 'com.oracle.database.jdbc:ojdbc8' implementation 'org.springframework.boot:spring-boot-starter-data-jdbc' implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2' ========================= application.properties ======================================= server.port=9090 #oracle spring.datas.. 2022. 9. 22. @Resource 어노테이션 아래글을 참고해보면, @Service("이름") 으로 정의된 것들을 @Resource("이름") 형태로 찾아서 자동으로 주입(DI) 해주는 기능을 하는 것 같다. https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=hjs4827&logNo=90124770577 @Resource 어노테이션 @Resource 어노테이션은 자바 6버전 및 JEE5 버전에 추가된 어노테이션으로서 어플리케이션에서 필요로... blog.naver.com 2022. 9. 22. 이전 1 ··· 6 7 8 9 10 11 12 ··· 15 다음 728x90 반응형