1. 1. Intellij 설치하기
www.jetbrains.com/ko-kr/toolbox-app/
JetBrains Toolbox App: 도구를 간편하게 관리
어떤 IDE에서든 원하는 프로젝트를 클릭 한 번으로 여세요.
www.jetbrains.com
해당 링크에서 toolbox로 설치하거나, 아래 링크에서 community 버전을 설치하면 된다. (돈없으니까 얼티밋 버전은 못쓴다.)
https://www.jetbrains.com/idea/
IntelliJ IDEA: The Capable & Ergonomic Java IDE by JetBrains
A Capable and Ergonomic Java IDE for Enterprise Java, Scala, Kotlin and much more...
www.jetbrains.com
2. 2. 간단한 스프링 프로젝트 제작
1. Spring Initializer로 간편하게 제작
위 링크를 사용하면 간단하게 스프링 프로젝트를 제작 할 수 있다!
2. 수동 제작
만약 실제로 만들 경우의 기본적인 build.gradle 세팅은 다음처럼 해준다.
buildscript{
ext{
springBootVersion = '2.1.7.RELEASE'
}
repositories{
mavenCentral()
jcenter()
}
dependencies{
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion")
}
}
apply plugin : 'java'
apply plugin : 'eclipse'
apply plugin : 'org.springframework.boot'
apply plugin : 'io.spring.dependency-management'
group 'com.testproj'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
testcompile('org.springframework.boot:spring-boot-starter-test')
}
코드를 작성하면 알람이 뜨는데 Enable-Auto-Import로 자동세팅을 추천한다.
'Programming > Spring' 카테고리의 다른 글
[Spring] Server가 Client에게 제공하는 3가지 방식 (0) | 2021.01.12 |
---|---|
[Spring] IntelliJ 와 github 연동하기 (0) | 2021.01.12 |