๋ก์ปฌ์์ ํด๋(java, resources)์ ํ์ผ(pom.xml)์ ์ง์ ๋ง๋ค์ด ํ๋ก์ ํธ๋ฅผ ์์ฑํ๋ ๋ฐฉ๋ฒ
1) ํด๋(java, resources)์
"ํ๋ก์ ํธ ํด๋ > src ํด๋ > main ํด๋ > java, resources ํด๋" ๋ชจ๋ ์์ฑ
2) ํ์ผ(pom.xml) ์์ฑ
srcํด๋์ ๊ฐ์ ์์น์ pom.xml ํ์ผ ์์ฑ
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>spring4</groupId>
<artifactId>testPjt</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId> org.springframework </groupId>
<artifactId>spring-context</artifactId>
<version> 4.1.0.RELEASE </version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source> 1.8 </source>
<target> 1.8 </target>
<encoding> UTF-8 </encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>
3) ์ดํด๋ฆฝ์ค์์ importํ๊ธฐ
์ดํด๋ฆฝ์ค์์ Maven์ผ๋ก import
'๐ปWEB BackEnd > ํ๋ ์์ํฌ Spring' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์์กด ๊ฐ์ฒด ์๋ ์ฃผ์ (0) | 2022.11.04 |
---|---|
DI(Dependency Injection) (0) | 2022.11.03 |
๊ฐ์ฒด ์์ฑ - (๋ฐฉ๋ฒ2) ์ปจํ ์ด๋๋ฅผ ํตํด ๊ฐ์ฒด ์์ฑ (0) | 2022.11.01 |
๊ฐ์ฒด ์์ฑ - (๋ฐฉ๋ฒ1) new์ฐ์ฐ์๋ฅผ ์ด์ฉ (0) | 2022.11.01 |
์์ฃผ ์ฐ์ด๋ ์ดํด๋ฆฝ์ค ๋จ์ถํค (0) | 2022.11.01 |