GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bigbeef/cppba-spring-boot: spring-boot简单教程

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
cppba-spring-boot-api
cppba-spring-boot-api
 
 
cppba-spring-boot-core
cppba-spring-boot-core
 
 
cppba-spring-boot-service
cppba-spring-boot-service
 
 
cppba-spring-boot-web
cppba-spring-boot-web
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

cppba-spring-boot

cppba-spring-boot教程

1.技术选型

spring-boot、spring-data-jpa(后期会加入新技术)

2.项目结构

cppba-spring-boot-core 通用的工具类、entity、dao

cppba-spring-boot-api 提供服务接口api

cppba-spring-boot-service 提供服务实现

cppba-spring-boot-web web项目代码

3.不同环境打包

application.properties 中定义当前环境(dev-开发,test-测试,prod-生产)

application-dev.properties 开发环境配置

application-test.properties 测试环境配置

application-prod.properties 生产环境配置

其中application.properties的配置如下:

###打包时只需要修改spring.profiles.active参数,决定环境

#表示当前是开发环境,读取application-dev.properties配置文件
spring.profiles.active=dev

#表示当前是测试环境,读取application-test.properties配置文件
spring.profiles.active=test

#表示当前是生产环境,读取application-prod.properties配置文件
spring.profiles.active=prod

About

spring-boot简单教程

Resources

Readme
Activity

Stars

7 stars

Watchers

2 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.