摘要:
导入依赖:<!-- swagger start --><dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version></dependen 阅读全文
摘要:
实体类: @Data@Componentpublic class Page<T> { private Integer total; private Integer prevent; private List<T> list;}controller层: @PostMapping("/sortFind" 阅读全文
摘要:
import org.springframework.stereotype.Component;import javax.servlet.*;import javax.servlet.annotation.WebFilter;import javax.servlet.http.HttpServlet 阅读全文
摘要:
controller父类: /** * Controller 父类 */public class BaseController { //请求处理成功,返回业务数据 protected RespResult returnSuccess(Object data) { RespResult respRes 阅读全文
摘要:
package com.jj.springshop.pojo.utils;import org.apache.commons.codec.digest.DigestUtils;public class MD5Utils { public static String md5(String src) { 阅读全文
摘要:
mapper接口:public interface MyAddressMapper { /** * 关联查询我的所有地址 * @param phone 用户手机号 * @return 查询结果 */ MyAddress selectAddress(String phone);} dto: @Data 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapp 阅读全文
摘要:
server: port: 8080spring: datasource: type: com.alibaba.druid.pool.DruidDataSource druid: username: root password: 123456 url: jdbc:mysql://localhost: 阅读全文
摘要:
https://plugins.jetbrains.com 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch 阅读全文
摘要:
###创建商品表 CREATE TABLE `item`( `id` INT(20) NOT NULL AUTO_INCREMENT COMMENT'商品主键', `title` VARCHAR(50) NOT NULL COMMENT '商品标题', `price` VARCHAR(50) NOT 阅读全文