GithubHelp home page GithubHelp logo

luzhifang / spring-boot-demo Goto Github PK

View Code? Open in Web Editor NEW
29.0 6.0 12.0 47 KB

一个基于Spring Boot & MyBatis的脚手架,代码生成易配置(没有集成mybatis generator,纯freemarker模板),快速开发中小型项目

Java 61.19% HTML 18.99% FreeMarker 19.82%

spring-boot-demo's Introduction

Licence

简介

Spring Boot Demo 是一个基于Spring Boot & MyBatis的种子项目,用于快速构建中小型项目。

特性&提供

  • 集成SpringFox-Swagger2,自动生成swagger注释

  • 统一响应结果封装及生成工具

  • 统一异常处理

  • 常用基础方法抽象(service层、dao层)封装

  • 使用Druid Spring Boot Starter 集成Druid数据库连接池与监控

  • 使用FastJsonHttpMessageConverter,提高JSON序列化速度

  • 集成MyBatis、PageHelper分页插件

  • 提供代码生成器根据表名生成对应的Domain(领域对象)、Mapper、MapperXML、Service、Controller等基础代码

  • 没有集成mybatis generator,全部使用freemarker模板生成,模板随便改

  • 代码生成提供Mysql、Sqlserver、Oracle三种数据库支持

  • 提供了简易的代码生成配置页面,随意改包名、路径

快速上手

  1. 克隆项目
  2. 修改/src/main/resources下application-dev.properties的数据库连接、修改maven依赖的驱动,修改/src/test/resources下generator.properties的一些生成配置
  3. 启动/src/test/java下面的GeneratorApplication类,访问http://localhost:8000
  4. 配置自己想要生成的表名类名等信息,点击生成按钮
  5. 启动/src/main/java下面的Application类
  6. 访问http://localhost:8080/swagger-ui.html

License

无,感谢各位大神的分享,感谢开源精神。

spring-boot-demo's People

Contributors

luzhifang avatar luzhiwei1988 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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