SpringBoot VS Spring

JoMinJun·2021년 4월 21일
0

springboot

목록 보기
6/38

1 . component-scan

Spring 은
<context:component-scan base-package="Spring.web.animal" />
이런식으로 설정을 해주는 반면

SpringBoot는
이미 설정이 되어 있어서

com.spring.example 밑으로 패키지를 구성해 주기만 하면 된다!

2. tomcat

SpringBoot 이미 설정이 완료되어있다.

3. jsp

SpringBoot는 src/main/webapp/WEB-INF/views 를 만들어서 jsp 생성
SpringBoot은 따로 pom.xml 파일에 jsp 라이브러리를 넣어줘야한다

spring:
  mvc:
    view:
      prefix: /WEB-INF/views/
      suffix: .jsp

4. 정적 자원

SpringBoot
resources/static 밑에 정적 자원을 넣어준다

Spring
src/main/webapp/resources 밑에 정적 자원을 넣어준다

5. 설정 파일

SpringBoot
resources/application.yml

Spring
root-context.xml
servlet-context.xml

  
profile
기술정리

0개의 댓글

관련 채용 정보