# spring-boot-demo **Repository Path**: vtech/spring-boot-demo ## Basic Information - **Project Name**: spring-boot-demo - **Description**: spring-boot 整合 shiro、Mybatis 等的练习项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-03-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## spring boot 不同的打包模式 使用 maven 的 profile 切换 ```shell mvn -Pjar # 打包为jar运行与内嵌的tomcat(默认模式) mvn -Pwar # 打包为war以便部署于外部的tomcat ``` ### 参考 - https://projects.spring.io/spring-boot/ - https://blog.csdn.net/saytime - http://www.cnblogs.com/moonlightL/ - [循序渐进,学习Spring Boot](https://www.ctolib.com/wuyouzhuguli-Spring-Boot-Demos.html) - [Integrating Apache Shiro into Spring-Boot Applications](http://shiro.apache.org/spring-boot.html) - [mybatis-spring-boot-autoconfigure](http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/) - [Druid Spring Boot Starter](https://github.com/alibaba/druid/tree/master/druid-spring-boot-starter) ### 运行 - 控制台: `mvn spring-boot:run` - 访问:localhost:8080/spring ### Swagger - JSON形式:http://localhost:8080/spring/v2/api-docs - 页面形式:http://localhost:8080/spring/swagger-ui.html ### 注意事项