Search

μŠ€ν”„λ§ ν”„λ ˆμž„μ›Œν¬ κ°œλ°œν™˜κ²½ μ„ΈνŒ…

μŠ€ν”„λ§ ν”„λ ˆμž„μ›Œν¬ κ°œλ°œν™˜κ²½ μ„ΈνŒ…

μŠ€ν”„λ§ ν”„λ ˆμž„μ›Œν¬ κ°œλ°œν™˜κ²½μ€ 일반적으둜 2가지 λ°©λ²•μœΌλ‘œ μ„ΈνŒ…ν•œλ‹€.
β€’
STS μ„€μΉ˜
β€’
이클립슀 ν™•μž₯ μ„€μΉ˜(Marketplace)
이 글을 μ“°λŠ” μ‹œμ (2023-10)μ—μ„œ 이클립슀 μ΅œμ‹  λ²„μ „μ—μ„œ ν™•μž₯ μ„€μΉ˜λ₯Ό ν•˜μ—¬ sts μ„€μΉ˜ν•˜λ©΄ μ—¬λŸ¬κ°€μ§€ λ²„κ·Έλ‚˜ 였λ₯˜κ°€ λ°œμƒν•˜λŠ” μ΄μŠˆκ°€ λ§Žλ‹€.
STS μ„€μΉ˜νŒŒμΌμ„ λ‹€μš΄λ°›μ•„ μ„€μΉ˜ν•˜λ„λ‘ ν•œλ‹€.

STS λ‹€μš΄λ‘œλ“œ

JVM 버전 1.8.0_202λŠ” 이 μ œν’ˆμ— μ ν•©ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 버전 11 이상이 ν•„μš”ν•©λ‹ˆλ‹€.
Vesion 1.8.0_202 of the JVM is not suitable for this product. Version: 11 or greater is required.

ν•΄κ²°

β€’
STS.ini 파일 μˆ˜μ •
-vm C:\Program Files\Java\jdk-11\bin\javaw.exe
Plain Text
볡사
μœ„μ˜ μ½”λ“œλ₯Ό μΆ”κ°€ν•˜λŠ”λ°, 이 λ•Œ μ§€μ •ν•œ κ²½λ‘œλŠ” VM(가상머신) JDK 경둜 이닀.

STS.ini μ „μ²΄μ½”λ“œ

-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:\Program Files\Java\jdk-11\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=11 -Dosgi.dataAreaRequiresExplicitInit=true -Xms256m -Xmx2048m --add-modules=ALL-SYSTEM -Dosgi.module.lock.timeout=10
Plain Text
볡사
Spring MVC 메뉴가 λ‚˜μ˜€μ§€ μ•ŠλŠ”λ‹€λ©΄?
C:\workspace\.metadata\.plugins\org.springsource.ide.eclipse.commons.content.core
Plain Text
볡사
μœ„μ˜ κ²½λ‘œμ— μ•„λž˜ νŒŒμΌμ„ μΆ”κ°€ν•˜κ³  sts λ₯Ό μž¬μ‹€ν–‰μ£Όμ„Έμš”~!
https-content.zip
3.0KB
https-content.xml
20.6KB
Spring MVC κ°€ λ‹€μš΄λ‘œλ“œ λ˜μ§€ μ•ŠλŠ” 경우 μˆ˜λ™μœΌλ‘œ mvc ν…œν”Œλ¦Ώ νŒŒμΌμ„ λ‹€μš΄λ‘œλ“œ λ°›μ•„μ„œ μ•„λž˜ κ²½λ‘œμ— λ„£μ–΄μ€€λ‹€.
org.springframework.templates.mvc-3.2.2.zip
9.7KB
.metadata\.sts\content\org.springframework.templates.mvc-3.2.2
Plain Text
볡사

κΈ°λ³Έ μ„€μ •

β€’
web.xml - 인코딩 ν•„ν„° μ„€μ •
<!-- 인코딩 ν•„ν„°(ν•œκΈ€κΉ¨μ§ 방지) --> <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> </filter> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
Java
볡사
β€’
home.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page session="false" %> <html> <head> <title>Home</title> </head> <body> <h1> Hello world! </h1> <P> The time on the server is ${serverTime}. </P> </body> </html>
HTML
볡사