Fetch the repository succeeded.
技术 | 说明 | 官网 |
---|---|---|
lombok | 一个 Java 库,可自动插入您的编辑器并构建工具 | https://projectlombok.org/ |
mysql | 一个免费最常用的关系型数据库 | https://www.mysql.com/ |
redis | 最强大的内存管理数据库 | https://redis.io/ |
druid | 一个JDBC连接池,监控,等组件 | https://github.com/alibaba/druid |
hutool | Hutool是一个小而全的Java工具类库 | https://www.hutool.cn/docs/#/ |
mybatis plus | 非常好用的dao层框架 增强mybatis | https://mybatis.plus/ |
autopoi | Excel和 Word简易工具类 | https://gitee.com/jeecg/autopoi?_from=gitee_search |
类 | 说明 |
---|---|
DeleteInnerInterceptor | 删除拦截器 |
WebLogAop | aop日志处理 |
RequestInterceptor | 请求拦截 |
BasePageRequest | 分页统一请求父类 |
BaseRequest | 统一请求父类 |
BaseResult | 统一返回类 |
RedisKeyConst | RedisKey管理类 |
RequestAttributeKeyConst | RequestAttributeKey管理类 |
com.time.store.*.controller 控制器,负责对service的前置处理, 处理对象转换之类
com.time.store.*.service service无接口类 直接实现类,具体业务逻辑
com.time.store.*.dao 对数据库的操作
com.time.store.*.entity.bo 数据库对应实体
com.time.store.*.entity.dto 接受的请求或者传输需要的类
com.time.store.*.entity.vo 响应类,返回类
示例
import com.time.store.core.util.Assert;
Assert.state(false,"失败");
//返回{"code":500,"success":false,"message":"java.lang.IllegalStateException: 失败","data":null}
// 直接传字符串会封装到message里
@GetMapping
public String hello() {
return "hello";
}
//返回{"code":200,"message":"hello","success":true}
// 传除了字符串和Result其他类会封装到data里
@GetMapping
public JSONObject hello() {
JSONObject jsonObject=new JSONObject();
jsonObject.put("name","jikeytang");
return jsonObject;
}
// 返回{"code":200,"data":{"name":"jikeytang"},"success":true}
// 自定义result返回
@GetMapping
public Result hello() {
return new Result();
}
//如果不想返回Result又想自定义可以使用@IgnoreResultAdvice
@GetMapping
@IgnoreResultAdvice
public Result hello() {
return new Result();
}
注解统一放在com.yun.yunmanager.annotations下
public ActiveUser me(@LoginUser ActiveUser activeUser) {
return activeUser;
}
`create_time` datetime NOT NULL COMMENT '创建时间',
`update_time` datetime NOT NULL COMMENT '修改时间',
对应model
@TableId(type = IdType.AUTO)
private Integer id;
`id` int NOT NULL,
对应model
@TableField(fill = FieldFill.INSERT)
private Date createTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。