
2025-04-21
Full distribution on Eclipse 4.21 ๋ฒ์ ๋ค์ด๋ก๋ C:\sts-3.9.18.RELEASE ๊ถ์ฅ-startup
plugins/org.eclipse.equinox.launcher_1.6.300.v20210813-1054.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.300.v20210828-0802
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-vm
C:\jdk-11.0.2\bin\javaw.exe
-vmargs
-javaagent:lombok.jar
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Dosgi.module.lock.timeout=10
๐ก ์ค๋ช :
javaagent:lombok.jar๋ Lombok ์๋ ๊ฐ์ ๋ฐ ์ ์ ์๋์ ์ํ ํ์ ์ค์
ํด๋น ํ์ผ์ STS ์ค์น ๊ฒฝ๋ก (C:\sts-3.9.18.RELEASE)์ ์์นํด์ผ ํจ
๊ฒฝ๋ก:
[์ํฌ์คํ์ด์ค]/.metadata/.plugins/org.springsource.ide.eclipse.commons.content.core
๋น์ด ์๋ค๋ฉด ์๋ ๋งํฌ์์ https-content.xml ๋ค์ด๋ก๋ ํ ๋ณต์ฌ
๐ https://nirsa.tistory.com/405
์ถ๊ฐ๋ก ๋ฐ์ ์์ถ ํ์ผ ํด์ โ template.xml, template.zip, wizard.json ๊ตฌ์ฑ
๋ณต์ฌ ๊ฒฝ๋ก:
C:\Users\Administrator\Desktop\SPRING\SPRINGMY\.metadata\.sts\content\org.springframework.templates.mvc-3.2.2
Window โ Preferences ์ง์
General โ Workspace โ Text file encoding: UTF-8 Web โ CSS / HTML / JSP / JSON: ๊ฐ๊ฐ UTF-8๋ก ๋ณ๊ฒฝC:\apache-tomcat-9.0.xx8090 8091๐ ํฌํธ ์ค์ ๊ฒฝ๋ก:
Servers ํญ์์ ํฐ์บฃ ๋๋ธ ํด๋ฆญ โ Overview ํ๋ฉด โ Ports ์น์
Add and Remove... โ ํ๋ก์ ํธ ์ด๋ โ Finish Start<properties>
<java-version>11</java-version>
<org.springframework-version>5.0.7.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>
<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.38</version>
<scope>provided</scope>
</dependency>
<!-- ์ฃผ์: ์ถฉ๋ ๋ฐฉ์ง๋ฅผ ์ํด ์๋ runtime scope ์ฃผ์ ์ฒ๋ฆฌ -->
<!-- <scope>runtime</scope> -->
๐ก Lombok ์ฃผ์์ฌํญ
provided ์ค์ ์ ์ปดํ์ผ ์๋ง ์ฌ์ฉ<!-- ํ๊ธ ๋ณํ ํํฐ ์์ -->
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- ํ๊ธ ๋ณํ ํํฐ ๋ -->
๐ก <filter>๋ ๋ฐ๋์ <servlet> ํ๊ทธ๋ณด๋ค ์์ชฝ์ ์์นํด์ผ ํจ
http://localhost:8090/ํ๋ก์ ํธ๋ช
์ ์javaagent:lombok.jar, UTF-8 ํํฐ ๋ฑ์ ์ด๊ธฐ ์ธํ
์์ ๋ฐ๋์ ํ์