Simple to use guns framework (for study)
Guns simply build operation, the generated code, mainly Guns v5.1 example. Ultimate There is no code generation.
1. What are the guns?
Guns on SpringBoot 2, is committed to doing more succinct back office systems. Guns program code is simple, rich annotation, easy to use, while Guns contains many basic modules (user management, role management, departmental management, dictionary management and other 10 modules) can be directly used as a scaffold background management system!
2.guns version?
Version name | Explanation | address |
---|---|---|
Guns Ultimate v2.4 | Transaction does not fix the entry into force under a single data source, is now in order to prevent the single-source multi-source data conflict, now configure multiple data sources into a multi-datasource branch maintenance | https://gitee.com/stylefeng/guns/tree/ultimate-v2.4/ |
Guns Ultimate v2.3 | Strong integration atomikos, MM no longer have to worry about multiple data sources affairs issues, Guns thank two groups of 月下魔术师 brothers contribute solutions |
https://gitee.com/stylefeng/guns/tree/ultimate-v2.3/ |
Guns Ultimate v2.2 | Fixes logging module to record traffic log, some fields missing | https://gitee.com/stylefeng/guns/tree/ultimate-v2.2/ |
Guns Ultimate v2.1 | Menu management table tree form instead, the department increased the left side of the tree | https://gitee.com/stylefeng/guns/tree/ultimate-v2.1/ |
Guns Ultimate v2.0 | Based layui new flagship version, demo Address: http://demo.stylefeng.cn | https://gitee.com/stylefeng/guns/tree/ultimate-v2.0/ |
Guns Ultimate v1.1 | Fully upgraded spring boot and mybatis-plus version | https://gitee.com/stylefeng/guns/tree/ultimate-v1.1/ |
Guns Ultimate v1.0 | The new UI interface, using bootstrap 4 + vue, new normalized database design | https://gitee.com/stylefeng/guns/tree/ultimate-v1.0/ |
Guns v5.1 | The latest version of Guns classic version, using bootstrap 3 | https://gitee.com/stylefeng/guns/tree/v5.1-final |
Guns v4.2 | spring boot upgraded to 2.0, the volume greatly simplifies the front end, some of the components upgraded to the latest version | https://gitee.com/stylefeng/guns/tree/v4.2 |
Guns v3.3 | Modular entire project, the overall split into four modules, an increase of JWT, and integration stream flowable 6.2.0 | https://gitee.com/stylefeng/guns/tree/v3.3 |
Guns v2.4 | spring boot on a comprehensive upgrade, simplify configuration and more dependent, more focus on developing business | https://gitee.com/stylefeng/guns/tree/v2.4/ |
Guns v1.0 | The first version of the Guns of the first to use spring java bean configuration mode, zero spring xml configuration, spring used in the extreme | https://gitee.com/stylefeng/guns/tree/v1.0/ |
3.Guns v5.1
ide on cloning GitHub https://gitee.com/stylefeng/guns/tree/v5.1-final project.
4. function?
1. Role Management User Management 2. 3. 4. Management department management menu 5. 6. dictionary management service login log log 7. 8. 9. notification manager 10. The monitoring and management code generator
5. build step?
(1) Cloning ide on GitHub https://gitee.com/stylefeng/guns/tree/v5.1-final project.
(2.)
(3) the sql file folder under the guns of guns.sql create in your database.
(4.) application.yml
spring: profiles: local datasource: url: jdbc:mysql://数据库地址:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT username: root password: 密码 filters: wall,mergeStat
Recommended not to change the name of the database before generating code that changed when generated will not detect your table up.
(5) run a wave. Admin account password 6 1
(6) the generated code.
Create a table in the database, remember to add a comment, below the kkkk is on my test table, select all template, fill in the fill to fill in, after generation will generate a kkkk.sql file in your java directory, database run it again. Then it came out.