All Projects → anyangdp → anyangdp-frame

anyangdp / anyangdp-frame

Licence: other
基于mybatis,springboot,tk.mybatis等框架二次开发,实现crud,controller,service,dao。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to anyangdp-frame

mybatis-mapper
generate SQL statements from the MyBatis3 Mapper XML file in Node.js
Stars: ✭ 64 (+300%)
Mutual labels:  mybatis, mybatis3
Spring Boot Api Project Seed
🌱🚀一个基于Spring Boot & MyBatis的种子项目,用于快速构建中小型API、RESTful API项目~
Stars: ✭ 8,979 (+56018.75%)
Mutual labels:  mybatis, mybatis-pagehelper
mybatis-helper
Mybatis plugins package
Stars: ✭ 13 (-18.75%)
Mutual labels:  mybatis, mybatis3
sqlt
SqlT golang实现的类似MyBaits的Sql 工具
Stars: ✭ 28 (+75%)
Mutual labels:  mybatis, mybatis3
mybatis-typehandlers-postgis
MyBatis Type Handlers for PostGIS
Stars: ✭ 58 (+262.5%)
Mutual labels:  mybatis, mybatis3
lightbatis
Lightbatis 增强 MyBatis 版Java 数据库持久层,更简洁并易用
Stars: ✭ 52 (+225%)
Mutual labels:  mybatis, mybatis3
mybatis-generator-gui-plus
基于MyBatis-Generator+SQLite+beautyeye_lnf开发的一款图形化代码生成器
Stars: ✭ 16 (+0%)
Mutual labels:  mybatis
DAFramework
云南数聚基础框架
Stars: ✭ 25 (+56.25%)
Mutual labels:  mybatis
snapdragon-util
Utilities for the snapdragon parser/compiler.
Stars: ✭ 17 (+6.25%)
Mutual labels:  utils
littlefisher-system
个人博客
Stars: ✭ 19 (+18.75%)
Mutual labels:  mybatis
react-semantic-render
Semantic helper components for rendering content with React.
Stars: ✭ 13 (-18.75%)
Mutual labels:  utils
app
本科期间写的一些应用程序
Stars: ✭ 40 (+150%)
Mutual labels:  mybatis
springboot-learning-demo
springboot学习示例
Stars: ✭ 17 (+6.25%)
Mutual labels:  mybatis
exfatprogs
exFAT filesystem userspace utilities
Stars: ✭ 26 (+62.5%)
Mutual labels:  utils
Student-Information-Administration-System
大学生信息管理系统——初学路上自己摸索实践的项目
Stars: ✭ 91 (+468.75%)
Mutual labels:  mybatis
perl-scripts
A nice collection of day-to-day Perl scripts.
Stars: ✭ 92 (+475%)
Mutual labels:  utils
skeletoid
Bootstrapping and Utils code for Android applications 🤖made at Mindera 💛
Stars: ✭ 24 (+50%)
Mutual labels:  utils
learning
学习笔记
Stars: ✭ 17 (+6.25%)
Mutual labels:  mybatis
atguigu ssm crud
Atguigu-SSM-CRUD 一个最基本的CRUD系统,采用IDEA+Maven搭建,具备前后端交互功能,前端采用BootStrap+Ajax异步请求DOM渲染,后端采用SpringMVC+MyBatis+Mysql8.0+Servlet+Jsp,符合REST风格URL规范,并加入了Hibernate提供的数据校验功能,支持PageHelper的分页功能,很适合SSM阶段性练习。同时用到了很多前端操作以及BootStrap组件,也有利于学习JS和前端框架。
Stars: ✭ 52 (+225%)
Mutual labels:  mybatis
Graduate
预约挂号系统的后台WEB
Stars: ✭ 34 (+112.5%)
Mutual labels:  mybatis

anyang-frame

基于mybatis,springboot,tk.mybatis等框架二次开发,实现crud,controller,service,dao。
联系方式qq:1513977901

#使用准备 ##1.插件
lombok:自动生成setget等,安装方式:idea在setting-plugins 查询lombok;eclipse,官网下载,安装jar

##2.环境 dev为开发环境,staging为测试环境,prod生产环境

数据库命名规范

表名

  • 单数
  • 小写+下划线(_)

字段

  • id, int,自增加
  • 小写+下划线(_)
  • 尽量描述清楚
  • 除了多对多ID关联的表,一些特殊的三方数据表,默认需要加上这几个字段

Example:

`created_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`last_updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`sort` char(1) NOT NULL DEFAULT '1' COMMENT '激活标记',
`enabled` char(1) NOT NULL DEFAULT '1' COMMENT '激活标记',
`deleted` char(1) NOT NULL DEFAULT '0' COMMENT '激活标记',

实体类

  • 实体名称只要遵循上述规则,不需要指定@Column注解,自动会将下划线的表字段名称转换成实体驼峰的字段

#业务代码引用方式 ##1. controller

@Slf4j
@RestController
@RequestMapping("/User")
public class UserController extends AbstractCRUDHandler<Integer, UserDTO, UserService> {


}

##2. service

public interface ConsoleUserService extends PageableService<Integer,UserDTO> {



}
@Log4j
@Service
public class UserServiceImpl extends AbstractStatelessService<Integer,UserDTO, User, UserMapper>
        implements UserService {

}

##3. dao 未完成(暂时可以不需要写,仍然可以做到crud)

##4. entity

EqualsAndHashCode(callSuper = true)
   @Data
   @Table
   public class User extends AbstractEntity<Integer> {
   }

##5. dto

@Data
public class UserDTO extends AbstractDTO {
}

感谢kerry,ice,william等对我的帮助。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].