기본 콘텐츠로 건너뛰기

Eclipse에서 작성한 프로젝트를 운영서버에 배포하기

이클립스에서 작성한 프로젝트를 운영서버에서 배포하기
- Eclipse는 개발환경, 개발 후 실행환경에 배포하는 절차가 요구됨
- 실행환경 : Tomcat, 없는 경우

- JAR 파일로 패키징 : Web App이 아닌 경우, Tomcat 이 내장된 Web App인 경우
    java -jar 파일이름.jar<enter>

- WAR 파일로 패키징 : Web Application Archives, Tomcat의 webapp/ 안에 복사
    <packaging>war</packaging>

Project -> Run As -> Maven clean(전에 했던 빌드를 지운다) -> .../target/(파일 생기는 곳) -> Maven install -> JAR / WAR tartget/(파일 생성)

무료 웹서버 계정을 주는 곳
- oracle cloud 서비스
- 100G, Linux, ...
- Oracle, MySQL, ...

유료 휍호스팅은 어디가 쌀까?
- cafe24.com
- gabia.com

Developer Tools
    Spring Boot DevTools
    Lombok
Web
    Spring Web

cd my-app
npm start<enter>
개발 완료시 빌드
npm run build<enter>
- my-app/build // 이 안에 빌드 파일이 들어간다

빌드된 파일을 모두 복사하여 Spring 프로젝트의 static/ 안에 복사해서 붙이기

application.properties
spring.mvc.view.prefix=/ // static/ 경로이다
spring.mvc.view.suffix=.html // .html을 생략가능

이 블로그의 인기 게시물

Grid 정렬

  .container { display : grid ; gap : 22px ; width : 1000px ; grid-template-columns : repeat ( auto-fit , 150px ); margin : auto ; justify-content : center ; } .container {      display : grid ; gap : 22px ; grid-template-columns : repeat ( auto-fit , minmax ( 250px , 1fr )); }

Python 변수

지역 변수 a 전역 변수 밖에서 선언한 변수를 사용할 때 앞에 global 을 붙여준다     global a