摘要:
一、统一响应对象 项目开发中返回统一的数据格式有利于统一前后台开发规范 1、编写统一响应对象 package com.learn.mall.common; import com.learn.mall.exception.LearnMallExceptionEnum; /** * 通用返回对象 * * 阅读全文
posted @ 2020-12-05 15:50
michealyangblog
阅读(341)
评论(0)
推荐(0)
摘要:
1、编写MD5加密工具类 加密过程需要对密码加盐,否则可以通过网络工具轻易解密出密码 package com.learn.mall.util; import com.learn.mall.common.Constant; import org.apache.tomcat.util.codec.bin 阅读全文
posted @ 2020-12-05 15:46
michealyangblog
阅读(548)
评论(0)
推荐(0)
摘要:
一、创建项目 通过IDEA的Initializr创建项目,详情参见:Spring Boot入门 二、添加项目依赖 添加Mybatis、Mysql、mybatis-generator(用于生成项目基础代码)依赖 <?xml version="1.0" encoding="UTF-8"?> <proje 阅读全文
posted @ 2020-12-05 14:52
michealyangblog
阅读(156)
评论(0)
推荐(0)

浙公网安备 33010602011771号