- 博客(8)
- 收藏
- 关注
原创 gateway结合jwt的token校验,网关跨域处理
网关过滤 @Component @Slf4j public class JwtWebFilter implements GlobalFilter, Ordered { @Value("${jwt.secret_key}") private String secretKey; @Value("${jwt.excluded_auth_url}") private String excludedAuthUrl; @Override public int getOrd
2021-11-22 09:49:22
874
原创 mybatis一对多查询
1.建表 CREATE TABLE `teacher` ( `id` int(10) DEFAULT NULL, `name` varchar(30) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `student` ( `id` int(10) NOT NULL, `name` varchar(30) DEFAULT NULL, `tid` int(10) DEFAULT NULL ) ENGINE=I
2021-07-19 16:06:44
71
原创 idea远程debug
1.先在pom文件里面添加下面配置 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <co
2021-06-29 15:40:03
279
原创 数据库自动修改 【最后修改时间】
CREATE TABLE User ( id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, sex CHAR(1) NOT NULL, password VARCHAR(1024) NOT NULL, money INT NOT NULL DEFAULT 0, register_date DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), last_modify_date
2021-06-10 11:08:57
194
1
原创 linux安装nginx
1.下载tar wget http://nginx.org/download/nginx-1.12.2.tar.gz 2.安装依赖 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 3.解压并且进入 tar -zxvf linux-nginx-1.12.2.tar.gz cd nginx-1.12.2/ 4.执行配置 ./configure #普通安装 ./configure --prefix=/usr/local/ngi
2021-06-07 13:11:45
126
原创 linux安装nacos(个人记录)
1.先去官网查询稳定版本下载https://nacos.io/zh-cn/docs/quick-start.html,下载*.tar.gz结尾的 2解压 tar -zxvf nacos-server-2.0.1.tar.gz 3.进入bin,然后启动sh startup.sh -m standalone
2021-06-03 11:07:03
85
原创 mybaits使用pagehelper(数据量大时别使用,效率差)
1.添加pagehelper的jar,我用的是gradle,pom可以自行添加 compile ‘com.github.pagehelper:pagehelper:5.0.0’ 注意版本是5.0.0 2.在mybaits配置文件mybatis-config.xml中添加pagehelper组件 添加此组件适用于版本为5.0.0的pagehelper,添加时有顺序要求,plugs添加在后面,我是放在最后面 3.代码中实现 ...
2021-02-07 14:36:29
278
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人