软件1801 (广州商学院)

  • 假分页操作

    实体类: @Data@Componentpublic class Page<T> { private Integer total; private Integer prevent; private List<T> list;}controller层: @PostMapping("/sortFind"
    吴大叔   2021-10-14 22:02   0   11
  • 跨域(后端)

    import org.springframework.stereotype.Component;import javax.servlet.*;import javax.servlet.annotation.WebFilter;import javax.servlet.http.HttpServlet
    吴大叔   2021-10-14 21:54   0   13
  • vo工具+controller父类

    controller父类: /** * Controller 父类 */public class BaseController { //请求处理成功,返回业务数据 protected RespResult returnSuccess(Object data) { RespResult respRes
    吴大叔   2021-10-14 21:52   0   71
  • MD5加密

    package com.jj.springshop.pojo.utils;import org.apache.commons.codec.digest.DigestUtils;public class MD5Utils { public static String md5(String src) {
    吴大叔   2021-10-14 21:50   0   10
  • 关联查询

    mapper接口:public interface MyAddressMapper { /** * 关联查询我的所有地址 * @param phone 用户手机号 * @return 查询结果 */ MyAddress selectAddress(String phone);} dto: @Data
    吴大叔   2021-10-14 21:47   0   9
  • mapper.xml

    <?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
    吴大叔   2021-10-14 21:43   0   36
  • yaml

    server: port: 8080spring: datasource: type: com.alibaba.druid.pool.DruidDataSource druid: username: root password: 123456 url: jdbc:mysql://localhost:
    吴大叔   2021-10-14 20:17   0   72
  • IDEA-plugins

    https://plugins.jetbrains.com
    吴大叔   2021-10-14 20:15   0   5
  • maven依赖

    <?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
    吴大叔   2021-10-14 20:13   0   25
  • 数据库基础语句

    ###创建商品表 CREATE TABLE `item`( `id` INT(20) NOT NULL AUTO_INCREMENT COMMENT'商品主键', `title` VARCHAR(50) NOT NULL COMMENT '商品标题', `price` VARCHAR(50) NOT
    吴大叔   2021-10-14 20:00   0   12