본문 바로가기

Spring

[Spring]외장톰캣 특정 war 미로드 개발환경 Tomcat10 (외장톰캣) Spring 2.x.x jdk 17 이슈사항 Tomcat10 환경에서 특정 War가 로드 되지 않는현상 URL관련 프로젝트(SpringBoot2.x.x)이 로드되지않음. 문제점 Spring Boot 2.x.x 는 Tomcat9 까지 지원 https://stackoverflow.com/questions/67525200/why-is-upgrading-to-tomcat-10-0-5-causing-spring-boot-to-shutdown-after-boot Why is upgrading to Tomcat 10.0.5 causing spring boot to shutdown after boot? I have a spring boot project and I am trying.. 더보기
[Spring]PageRequest이용한 페이징처리 참고 URL 공식문서 Spring Doc PageRequest Custom PageRequestCustom Test Repository [GithubRepo] (https://github.com/lso5507/demo-pageable) 필요이유 페이징 기능이 필요할때 Page관련 모델을 생성 후에 사용자가 관리해줘야 함. 장점 page,Size,sort 등의 Parameter정보를 제공하면 봉투패턴으로 page정보와 Content정보를 전달해줌 단점 데이터에 대한 추가가공이 필요할 경우에 pageImpl 클래스를 상속받아 작업해야함 DataInit Controller package com.example.demopageable; import org.springframework.beans.factory.an.. 더보기
[Spring] MyBatis Mapper Bean NotFound 이슈사항 해당 환경에서 Spring Mybatis v3 사용 시 Mapper Bean파일을 찾을 수 없습니다. 관련 build.gradle 해결방식 Mybatis Starer팩 버전을 v2 으로 다운그레이드함 // https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter implementation group: 'org.mybatis.spring.boot', name: 'mybatis-spring-boot-starter', version: '2.3.1' 원인분석 실제로 Mybatis Interface를 구현하여 @Mapper 어노테이션을 삽입하면 Spring 에서 프록시 기능을 이용해 Mybatis 구현체를 .. 더보기