놀코에 오신 것을 환영합니다.

놀아보자 코드랑

KOSTA/SpringBoot 7

MSA , 표준프레임워크 개발 가이드

참고 소스 https://github.com/sblee1031/Kosta/tree/main/ORACLE_DB_THEOTY/Oracle_DB_project/resttempate GitHub - sblee1031/Kosta: KOSTA_219 KOSTA_219. Contribute to sblee1031/Kosta development by creating an account on GitHub. github.com 넷플릭스 MSA https://www.samsungsds.com/kr/insights/msa_and_netflix.html 넷플릭스로 알아보는 MSA 넷플릭스로 알아보는 MSA www.samsungsds.com 기존 EJB에서 DevOps로 개발과 운영을 함께 하는 시스템으로 바뀜. Circuit..

KOSTA/SpringBoot 2021.09.10

Spring Boot에서 CORS 적용해보기

Spring Boot에서 CORS 적용해보기 안녕하세요! 이번 포스팅에서는 CORS가 무엇인지 간단하게 알아보고, Spring Boot에서 CORS를 적용하는 방법에 대해 알아보겠습니다. 전체 코드는 Github에서 확인이 가능합니다. ✍️ 저는 만들어둔 API 서버로 클라이언트에서 통신을 시도할 때, 콘솔에 아래와 같은 오류 메세지를 마주친 경험이 있습니다. ❌ Access to XMLHttpRequest at '~' from origin '~' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 부랴부랴 구글링을 해서 검색해보니, 'CORS'를 적용하면 되..

KOSTA/SpringBoot 2021.08.13

SpringBoot - JPA(2)

JPA 테스트 코드 proxy 호출 메서드 @SpringBootTest class ProductRepositoryTest { @Autowired private ProductRepository productRepository; Logger log = LoggerFactory.getLogger(this.getClass()); @Test @DisplayName("클래스이름과 메서드이름, 상위인터페이스이름등을 확인-ProxyPattern확인") void test() { Class clazz = productRepository.getClass(); log.error("클래스이름"+clazz.getName()); log.error("------------"); for(Method m: clazz.getDeclare..

KOSTA/SpringBoot 2021.08.05

Spring Boot - Mybatis 설정

root-context.xml 사용 안하고, 자바 @configuration 사용함. application.properties 파일 server.port=9999 server.servlet.context-path=/dmmybatis spring.mvc.view.prefix=/WEB-INF/jsp/ spring.mvc.view.suffix=.jsp #hikari CP -- SPRING BOOT에 이미 포함된 라이브러리 spring.datasource.hikari.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy spring.datasource.hikari.jdbc-url=jdbc:log4jdbc:oracle:thin:@localhost:1521:xe spr..

KOSTA/SpringBoot 2021.08.03

STS 설치 및 설정, Junit5, Logger(logback) 설정

STS설치하기 https://spring.io/tools Spring Tools 4 is the next generation of Spring tooling Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Code, or Theia IDE. spring.io UTF-8 설정, JRE 1.8 버전 확인 Spring Boot 구조 Junit5 테스트 상위 com패키지에 Application.java파일을 옮긴후 어느 테스트 패키지에서나 Test가 가능하다 M..

KOSTA/SpringBoot 2021.08.02