1 2 3 4 5 ··· 24 下一页
摘要: 背景: 有时要根据不同的请求头或者请求参数动态修改路由的uri 实现方案: 使用全局过滤器(很关键) https://blog.csdn.net/netyeaxi/article/details/115287385 package com.tl.gateway.filter; import java 阅读全文
posted @ 2024-08-12 12:23 wujf 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 原文:https://mp.weixin.qq.com/s/Hz0gStUXe40FNiuY7rudhA 一种简单办法是,新代码先用其他端口启动,启动完毕后,更改nginx的转发地址,nginx重启非常快,这样就避免了大量的用户访问失败,最后终止老进程就可以。 新思路: 判断端口是否占用 占用则先通 阅读全文
posted @ 2024-08-12 12:21 wujf 阅读(1) 评论(0) 推荐(0) 编辑
摘要: package com.xf.config; import java.sql.Connection; import java.util.Properties; import org.apache.ibatis.executor.statement.StatementHandler; import o 阅读全文
posted @ 2024-08-12 12:20 wujf 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 分表配置demo databaseName: mydb # 逻辑数据库名称 dataSources: ds_0: url: jdbc:mysql://localhost:3306/test?serverTimezone=UTC&useSSL=false username: root password 阅读全文
posted @ 2024-08-12 12:20 wujf 阅读(3) 评论(0) 推荐(0) 编辑
摘要: import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax. 阅读全文
posted @ 2023-10-12 17:51 wujf 阅读(87) 评论(0) 推荐(0) 编辑
摘要: @Bean public CorsFilter corsFilter() { CorsConfiguration config = new CorsConfiguration(); config.addAllowedOriginPattern("*"); config.setAllowCredent 阅读全文
posted @ 2023-10-11 16:24 wujf 阅读(9) 评论(0) 推荐(0) 编辑
摘要: npm config set cache "D:\nodejs\node_cache" //设置缓存文件夹npm config set prefix "D:\nodejs\node_global" //设置全局模块存放路径 npm install -g cnpm --registry=https:/ 阅读全文
posted @ 2023-10-10 19:44 wujf 阅读(6) 评论(0) 推荐(0) 编辑
摘要: import sys import time import os import paramiko from pygments.lexers import shell import zipfile import json baseconfig =None # baseconfig={ # "ip": 阅读全文
posted @ 2023-07-25 15:00 wujf 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 测试数据 DROP TABLE IF EXISTS `emp`; CREATE TABLE `emp` ( `empno` decimal(4, 0) NOT NULL, `ename` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci N 阅读全文
posted @ 2023-06-19 19:22 wujf 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1、pom <?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" 阅读全文
posted @ 2023-05-26 17:06 wujf 阅读(807) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 24 下一页