728x90

1. Dependency 추가

        <properties>
            <org.apache-tiles.version>3.0.8</org.apache-tiles.version>
        </properties>

        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-core</artifactId>
            <version>${org.apache-tiles.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-servlet</artifactId>
            <version>${org.apache-tiles.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-jsp</artifactId>
            <version>${org.apache-tiles.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-extras</artifactId>
            <version>${org.apache-tiles.version}</version>
        </dependency>

2. dispatcher-servlet.xml bean 추가

    <!-- Tiles Set Up -->
    <bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
        <property name="viewClass" value="org.springframework.web.servlet.view.tiles3.TilesView"/>
        <property name="oreder" value="1"/>
    </bean>
    <bean class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
        <property name="definitions" value="/WEB-INF/jsp/tiles/*.xml"/>
    </bean>
    <bean
        class="org.springframework.web.servlet.view.InternalResourceViewResolver"
        p:order="2"
        p:viewClass="org.springframework.web.servlet.view.JstlView"
        p:prefix="/WEB-INF/jsp/" p:suffix=".jsp" />
728x90

'study > spring' 카테고리의 다른 글

[Spring] Study #1  (0) 2023.02.06
[Spring] spring mysql 연동  (0) 2022.09.22
[Spring] The import org.junit cannot be resolved 에러  (0) 2022.09.21
[SPRING] STS4 설치 및 세팅  (0) 2022.09.06
[SPRING BOOT] 스프링 부트 자동 리로드  (0) 2022.09.06
728x90

오브젝트

오브젝트 생성 - 관계 - 사용 - 소멸

재활용 가능한 디자인 패턴

깔끔하 구조 리팩터링

단위 테스트

DAO (Data Access Object) -> DB를 사용해 데이터를 조작 + 조작하는 기능 전담하도록 만든 오브젝트

 

 

728x90

'study > spring' 카테고리의 다른 글

[Spring] tiles 설정  (0) 2024.06.11
[Spring] spring mysql 연동  (0) 2022.09.22
[Spring] The import org.junit cannot be resolved 에러  (0) 2022.09.21
[SPRING] STS4 설치 및 세팅  (0) 2022.09.06
[SPRING BOOT] 스프링 부트 자동 리로드  (0) 2022.09.06
728x90

mysql 설치

https://dev.mysql.com/downloads

 

MySQL :: MySQL Community Downloads

The world's most popular open source database Contact MySQL  |  Login  |  Register

dev.mysql.com

pom.xml dependency 추가

		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>8.0.30</version>
			<scope>test</scope>
		</dependency>
728x90

'study > spring' 카테고리의 다른 글

[Spring] tiles 설정  (0) 2024.06.11
[Spring] Study #1  (0) 2023.02.06
[Spring] The import org.junit cannot be resolved 에러  (0) 2022.09.21
[SPRING] STS4 설치 및 세팅  (0) 2022.09.06
[SPRING BOOT] 스프링 부트 자동 리로드  (0) 2022.09.06
728x90

1. project 우클릭 -> Build Path -> Configure Build Path

2. Add Library -> JUnit

3.Junit version 선택

728x90

'study > spring' 카테고리의 다른 글

[Spring] tiles 설정  (0) 2024.06.11
[Spring] Study #1  (0) 2023.02.06
[Spring] spring mysql 연동  (0) 2022.09.22
[SPRING] STS4 설치 및 세팅  (0) 2022.09.06
[SPRING BOOT] 스프링 부트 자동 리로드  (0) 2022.09.06
728x90

1. 설치

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

 

다운로드

 

다운로그 파일 압축풀기

 

contents.zip 압축풀기

 

실행

 

워크 스페이스 설정

help -> Eclipse Mrketplace

Eclipse Enterprise Java and web developer Tool 설치

 

Spring Tools 3 Add-On for Spring Tools 4 ~ 설치

 

재시작

 

 

728x90

'study > spring' 카테고리의 다른 글

[Spring] tiles 설정  (0) 2024.06.11
[Spring] Study #1  (0) 2023.02.06
[Spring] spring mysql 연동  (0) 2022.09.22
[Spring] The import org.junit cannot be resolved 에러  (0) 2022.09.21
[SPRING BOOT] 스프링 부트 자동 리로드  (0) 2022.09.06
728x90

dependency

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

application.properties

spring.devtools.livereload.enabled=true
728x90

'study > spring' 카테고리의 다른 글

[Spring] tiles 설정  (0) 2024.06.11
[Spring] Study #1  (0) 2023.02.06
[Spring] spring mysql 연동  (0) 2022.09.22
[Spring] The import org.junit cannot be resolved 에러  (0) 2022.09.21
[SPRING] STS4 설치 및 세팅  (0) 2022.09.06

+ Recent posts