본문 바로가기

웹개발/스프링 프레임워크

Spring Boot 프로젝트 만들기 - 2편 Spring Boot 프로젝트 만들기 - 2편 보안을 위해서(이용자가 직접 jsp에 접근하지 못하도록) WEB-INF에 jsp를 두도록 하겠습니다. 1. 디펜던시 추가 compile 'javax.servlet:jstl:1.2'compile 'org.apache.tomcat.embed:tomcat-embed-jasper:9.0.0.M18' 2. view 설정 3. view 설정에 맞춰서 폴더들을 생성해 주었습니다 src > main > webapp > WEB-INF > view > hello.jsp 생성 Hello World! 4. HelloConroller.class 수정 Spring Boot App으로 서버 올려 접속하면Hello World! 출력 더보기
Spring Boot 프로젝트 만들기 - 3편 Spring Boot 프로젝트 만들기 - 3편 MyBatis 와 DB 연결 * MariaDB 설치 방법 : http://bulkywebdeveloper.tistory.com/admin/entry/post/?id=65 1. dependencies 추가mybatis, mariadb dependencies 추가(mybatis 있으면 추가 안해도됨) compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.0') compile 'org.mariadb.jdbc:mariadb-java-client:2.0.1' 2. Mybatis, DB 설정src > main > resources > application.properties 스프링부트의 큰 장점이 appli.. 더보기
Spring Boot 프로젝트 만들기 - 1편 Spring Boot 프로젝트 만들기 - 1편 Spring Boot + Gradle + mybatis + Mysql 을 이용한 프로젝트 생성 첫번째 입니다. 1. STS Spring Tool Suit 다운로드 ( https://spring.io/ ) 2. 해당 경로로 이동하여 STS.ini 파일 설정(빨간색만 추가) openFIle-vmC:\Program Files\Java\jdk1.8.0_102\bin\javaw.exe(jdk경로+javaw.exe)마지막 줄-Dfile.encoding=UTF-8 (시스템 기본 인코딩 인식) 3. Gradle 설치 Marketplace > gradle 검색 위의 두개 Integration, IDE Pack 인스톨 4. Spring starter Project 생성 기본적.. 더보기
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ssoController': Unsatisfied dependency expressed through field 'ssoSerive'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ssoService': Unsatisfied dependency expressed through field 'ssoDao'; nested exception is org.springframewor.. 더보기