egov admin springboot v4.2.3
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
eGovFrameSupport 6f6a635015
Update context-common-convert.md
https://github.com/eGovFramework/egovframe-template-simple-backend/pull/26

해당 PR로 인하여 클래스 명 변경
3 years ago
.github Create maven.yml 3 years ago
DATABASE egovframe-template-simple-backend v4.1.0 FINAL 3 years ago
Docs Update context-common-convert.md 3 years ago
src Merge pull request #26 from Chung10Kr/contribution-9 3 years ago
.gitignore Init: first Init 4 years ago
.pmd Init: first Init 4 years ago
.springBeans Init: first Init 4 years ago
README.md [2023-04-28] 3 years ago
pom.xml Merge branch 'contribution' into contribution-5 3 years ago

README.md

표준프레임워크 심플홈페이지 BackEnd

java Spring_boot maven swagger
workflow

※ 본 프로젝트는 기존 JSP 뷰 방식에서 벗어나 BackEnd와 FrontEnd를 분리하기 위한 예시 파일로 참고만 하시길 바랍니다.

환경 설정

프로젝트에서 사용된 환경 프로그램 정보는 다음과 같다.

프로그램 명 버전 명
java 1.8 이상
maven 3.8.4

BackEnd 구동

CLI 구동 방법

mvn spring-boot:run

IDE 구동 방법

개발환경에서 프로젝트 우클릭 > Run As > Spring Boot App을 통해 구동한다.

구동 후 확인

구동 후, 브라우저에서 http://localhost:포트번호/ 로 확인이 가능하다.
초기 포트번호는 8080이며 /src/main/resources/application.properties 파일의 server.port 항목에서 변경 가능하다.
또한, http://localhost:포트번호/swagger-ui/index.html#/ 로 애플리케이션의 엔드포인트를 확인 가능하다.

FrontEnd 구동 (React)

현재 FrontEnd는 React 관련 예제로 구성되어 있다. 심플홈페이지FrontEnd 소스를 받아 구동한다.

변경 사항

1. Java Config 변환

1) Web.xml -> WebApplicationInitializer 구현체로 변환

2) context-*.xml -> @Configuration 변환

3) properties 변환(예정) boot 지원

2. API 변환

직접 View와 연결하던 방법에서 API 형식으로 변환 -> 다양한 프론트에서 적용 가능 하도록 예제 제공
※ API를 사용한 Controller들은 ~ApiController.java에서 확인 가능합니다.

Jar 실행시

java -jar <jar파일명> --spring.profiles.active=<profile명>