当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 213

改变从坚持开始 / SpringBootUnity
暂停

forked from 奋进的小莫 / SpringBootUnity
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Build Status Backers on Open Collective Sponsors on Open Collective GitHub issues GitHub license Maven Central

项目简介

mark

环境

  • maven latest
  • jdk1.8
  • spring boot 1.5.8 release(目前最新版)
  • 个人推荐idea来代替eclipse(希望不要被说成异教徒必须死)
  • mysql5.5+
  • git: 版本管理
  • nginx: 反向代理服务器

注意事项

  • 本项目代码托管在github码云两个地方,最新代码会先推送在github上,码云上会在github上更新完之后进行同步。
  • 本项目多数数据库都用到了hibernate,如果没有提供sql文件。则启动时会根据代码映射自动生成数据库表,请在启动前修改application.properties中的数据库连接信息

启动方式

  • 本地运行 本repo是一个多模块组成,每一个模块都可以单独打包运行。如果想运行哪个模块可以找到对应的Main文件右键运行。 run

  • 在linux服务器运行 spring boot内置了tomcat做为web容器,默认打成jar包直接放在服务器上执行就可以了

java -Xms64m -Xmx2048m -jar project.jar 5 >> ./project.log &

打包

  • 如果需要定制化打成war包,那么也很简单。在maven中做下设置就ok了,然后把war包扔到tomcat下面就可以运行了
    <modelVersion>4.0.0</modelVersion>
    <artifactId>api</artifactId>
    <packaging>war</packaging>

更新日志

  • 2017-09-02 api模块: 添加swagger-bootstrap-ui,和原有ui并行存在。
    http://localhost:8080 默认UI
    http://localhost:808/doc.html bootstrap-ui

  • 2017-09-02 spring boot版本从1.4.3更新到1.5.8

  • 2017-09-02 修复不配置数据库信息无法启动的bug

  • 2017-09-02 版本号更新到2017.1

  • 2017-09-02 api模块(swagger)添加开源库swagger-bootstrap-ui,和swagger默认UI同时存在。

  • 2017-09-02 web模块添加数据库sql文件,导入后一键启动可直接访问到web界面。

  • 2017-09-06 mybatis模块:添加USER.sql,启动后访问:http://localhost:8080 即可看到接口数据

  • 2017-09-06 所有模块: 添加 characterEncoding=utf8&useSSL=true 解决高版本mysql的sll警告

  • 2017-09-06 添加代码贡献者列表和支持者,赞助商链接。

  • 2017-09-08 crawler模块(网络爬虫):修复本地文件目录不存在会报错的bug。处理方式为:不存在则自动创建

  • 2017-11-02 开源协议从apache更换到MIT

  • 2017-11-02 添加本地运行方式的说明

  • 2017-11-02 版本更新到2017.2

  • 2017-11-02 spring boot版本更新到1.5.8

  • 2017-11-03 添加kotlin环境配置

  • 2017-11-03 按照阿里巴巴编程规范插件P3C优化代码

  • 2017-11-03 合并apiwebsite模块,访问localhost:8080会显示网站主页,访问localhost:8080/api会显示api管理界面

贡献者

感谢所有为本项目做出贡献的开发者们.

支持者

感谢您的支持! 🙏 [成为支持者]

赞助商

[成为赞助商]支持本项目并成为赞助商. 您的LOGO和网站链接将会被展示在这里.

项目说明

需求是多变的,本项目是以spring boot为基础,在使用spring boot的过程中对应不同的需求选用不同的技术和spring boot进行搭配,因此本项目是个偏于使用示例的定位。同时如果您在使用spring boot的过程中有什么好用的技术期待您对本项目的PR。

关于我

@小莫:本人是一个热爱开源精神、追求新潮的开发者,技术过得去,还算勤勉!习惯以github的issue驱动方式来组织我的项目,也希望感兴趣的朋友和我联系,一起进步,共同开发感兴趣的开源项目。目前任rpg服务端主程,熟悉游戏开发和web开发。同时也是个喜欢二次元的死宅,爱动漫,略懂日语。

在线小工具

问题反馈

  1. 欢迎提issue一起完善这个项目。
  2. QQ: 83387856
  3. 个人主站: https://xiaomo.info

License

MIT License

Copyright (c) 2017 Peng Hu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License Copyright (c) 2017 Peng Hu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

rabbitmq、redis、scheduled、socket、mongodb、Swagger2、spring data jpa、Thymeleaf、freemarker、velocity等 (多模块spring boot项目) (使用spring boot 做底层构架,在不用的应用场景下搭配不同的技术构建项目。) 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/a5244491/SpringBootUnity.git
git@gitee.com:a5244491/SpringBootUnity.git
a5244491
SpringBootUnity
SpringBootUnity
master

搜索帮助

14c37bed 8189591 565d56ea 8189591