知行合一

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 37 下一页

2021年3月6日 #

摘要: 一、数据表结构 create table `foodie-shop-dev`.items ( id varchar(64) not null comment '商品主键id' primary key, item_name varchar(32) not null comment '商品名称 商品名称 阅读全文
posted @ 2021-03-06 10:04 callbin 阅读(1072) 评论(0) 推荐(0)

摘要: 一、脱敏工具类 package com.imooc.utils; import sun.applet.Main; /** * 通用脱敏工具类 * 可用于: * 用户名 * 手机号 * 邮箱 * 地址等 */ public class DesensitizationUtil { private sta 阅读全文
posted @ 2021-03-06 06:22 callbin 阅读(294) 评论(0) 推荐(0)

摘要: 一、SpringBoot 整合 mybatis-pagehelper 1.引入分页插件依赖 <!--pagehelper --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-b 阅读全文
posted @ 2021-03-06 00:12 callbin 阅读(219) 评论(0) 推荐(0)

2021年3月5日 #

摘要: 一、数据库结构 create table `foodie-shop-dev`.items_comments ( id varchar(64) not null comment 'id主键' primary key, user_id varchar(64) null comment '用户id 用户名 阅读全文
posted @ 2021-03-05 22:13 callbin 阅读(210) 评论(0) 推荐(0)

摘要: 一、数据库结构 create table `foodie-shop-dev`.items ( id varchar(64) not null comment '商品主键id' primary key, item_name varchar(32) not null comment '商品名称 商品名称 阅读全文
posted @ 2021-03-05 20:23 callbin 阅读(260) 评论(0) 推荐(0)

摘要: 功能:查询每个一级分类的最新6条商品数据一、数据库表结构 create table `foodie-shop-dev`.category ( id int auto_increment comment '主键' primary key, name varchar(32) not null comme 阅读全文
posted @ 2021-03-05 18:26 callbin 阅读(1026) 评论(0) 推荐(0)

2021年3月4日 #

摘要: 跨域 产生跨域问题的罪魁祸首是浏览器同源策略,当协议、子域名、主域名、端口号中任意一个不相同时,都算作不同域,不同域之间的网络请求就会触发跨域问题。跨域并不是请求发不出去,请求能发出去,服务端能收到请求并正常返回结果,只是结果被浏览器拦截了。 解决方法 前后台分离模式目前主流解决方案有三种: web 阅读全文
posted @ 2021-03-04 21:50 callbin 阅读(2904) 评论(0) 推荐(0)

摘要: /** * 事务传播 - Propagation * REQUIRED: 使用当前的事务,如果当前没有事务,则自己新建一个事务,子方法是必须运行在一个事务中的; * 如果当前存在事务,则加入这个事务,成为一个整体。 * 举例:领导没饭吃,我有钱,我会自己买了自己吃;领导有的吃,会分给你一起吃。 * 阅读全文
posted @ 2021-03-04 21:21 callbin 阅读(118) 评论(0) 推荐(0)

摘要: 用户的主键 1、全局唯一化。已经把组件预先的引用了进来。就是下面三个包, 2、这里有个sid,其实就是工具类。 package org.n3r.idworker; import org.n3r.idworker.strategy.DefaultWorkerIdStrategy; import org 阅读全文
posted @ 2021-03-04 21:09 callbin 阅读(279) 评论(0) 推荐(0)

摘要: 一、枚举类型定义 1、性别:男,女,保密 (目录:com/imooc/enums/Sex.java) package com.imooc.enums; public enum Sex { woman(0,"女"), man(1,"男"), secret(2,"保密"); public final I 阅读全文
posted @ 2021-03-04 20:50 callbin 阅读(100) 评论(0) 推荐(0)

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 37 下一页