Spring
-
스프링 MVC 기초 - 5 : 기타Spring 2022. 11. 15. 15:28
* UTF-8 설정 - web.xml encoding org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 encoding /* - STS Window > Preferences > General > Workspace >Text file encoding> Other에서 UTF-8 설정 후 Apply - JSP : 파일 최상단에 아래 내용 추가 * SQL 로그 남기기 - pom.xml 추가 org.lazyluke log4jdbc-remix 0.2.7 - log4j.xml 추가 - root-context.xml 추가 - root-context.xml 수정
-
스프링 MVC 기초 - 2 : pom.xmlSpring 2022. 11. 14. 12:31
pom.xml 수정 11 스프링프레임워크 버전 변경 버전 확인 : https://spring.io/projects/spring-framework 버전 관련 체크 사항 : https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions 5.2.22.RELEASE 에러 나지 않는 버전으로 변경 * Mysql 연결 메이븐리포지토리 사이트 : https://mvnrepository.com/ pom.xml에 위 내용 추가 * MyBatis 설정 * 테스트를 위한 라이브러도 추가 org.springframework spring-jdbc ${org.springframework-version} org.springframework spr..
-
스프링 MVC 기초 - 1 Spring Legacy ProjectSpring 2022. 11. 14. 10:29
* 개발환경 jdk-11.0.17 tomcat-9.0.68 mysql community server 5.7.40.0 spring-tool-suite-3.9.18 * STS 실행 Spring Legacy Project 생성 Spring MVC Project 선택 패키지명 설정 => Finish * 실행 생성한 프로젝트명(test01) 우클릭 => Run As => Run on Server Tomcat 서버로 설정 패키지명(wsol) 없애기 Tomcat v9.0 Server at localhost 더블 클릭 * home.jsp 에러 표시 없애기 프로젝트명 우 클릭 => Build Path => Configure Build Path JDK 버전 변경