Giter Site home page Giter Site logo

egovframe-template-simple-backend's Introduction

표준프레임워크 심플홈페이지 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) 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명>

egovframe-template-simple-backend's People

Contributors

davideugen avatar chung10kr avatar egovframesupport avatar yongfire38 avatar miniplugin avatar devholic22 avatar lucki3377 avatar 15615o avatar rukegithub avatar smile-jeong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.