Git Product home page Git Product logo

cppba-spring-boot's Introduction

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

cppba-spring-boot's People

Contributors

bigbeef avatar

Watchers

 avatar  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.