https://gigas-blog.tistory.com/115
프로젝트만들걸 war파일로 도메인만들어놓고, EC2 가상머신 임대해놓은 곳으로 배포
putty와 ftp(Filezila) 준비
=====================================
plugins {
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
id 'war'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}
=====================================
package com.example.board;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(BoardApplication.class);
}
}
=====================================
'SpringBoot' 카테고리의 다른 글
[InteliJ] Parameter hints (0) | 2020.09.09 |
---|---|
[SpringBoot] Persistence Framework (0) | 2020.08.15 |
[메모] STS 스프링부트 Prefernce encoding(인코딩설정) (0) | 2020.07.24 |
[스프링] Application.properties (0) | 2020.07.13 |
[스프링] 스프링부트 시큐리티 (0) | 2020.07.03 |