上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 57 下一页
摘要: 前一次 init 时,master ip 写错了,导致init 失败,修改IP后再次执行时,报 kubeadm init 失败,port is in use Last login: Thu Oct 13 15:11:27 2022 from 172.16.0.66 [root@k8smaster ~ 阅读全文
posted @ 2022-10-13 16:04 VipSoft 阅读(451) 评论(0) 推荐(0)
摘要: 下载文件 SpringBoot 接口输出文件流 & Vue 下载文件流,获取 Header 中的文件名 @SpringBootTest class DownloadTests { Logger logger = LoggerFactory.getLogger(this.getClass()); Co 阅读全文
posted @ 2022-10-09 13:46 VipSoft 阅读(959) 评论(0) 推荐(0)
摘要: 安装前可以先检查一下有没有,再选择是否要安装 卸载 Nginx # 删除除了配置文件以外的所有文件。 sudo apt-get remove nginx nginx-common # 删除所有与nginx有关的东西,包括配置文件。 sudo apt-get purge nginx nginx-com 阅读全文
posted @ 2022-09-30 13:32 VipSoft 阅读(336) 评论(0) 推荐(0)
摘要: MySQL 数据分组后取第一条数据 SQL SERVER (mssql) 数据分组后取第一条数据 SQL 如下 找状态=1的数据,按 HospitalId,DeptId 组合并倒序排序,每组里面取第一条数据 SELECT * FROM ( SELECT *, ROW_NUMBER() OVER (P 阅读全文
posted @ 2022-09-30 10:24 VipSoft 阅读(1289) 评论(0) 推荐(0)
摘要: 静态资源( StaticResource )指的是在程序载入内存时对资源的一次性使用,之后就不再访问这个资源了;动态资源(DynamicResource)使用指的是在程序运行过程中然会去访问资源。 简单的可以理解为,如果换皮肤而不重启程序,就需要用 DynamicResource <Window x 阅读全文
posted @ 2022-09-29 14:43 VipSoft 阅读(462) 评论(0) 推荐(0)
摘要: 画一个 Border 对边框进行投影 <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.micr 阅读全文
posted @ 2022-09-28 12:32 VipSoft 阅读(199) 评论(0) 推荐(0)
摘要: 要注意,拖拽的地方,需要加背景色,否则 DrageMove 将无效 MainWindows.xaml <Window x:Class="Report.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentatio 阅读全文
posted @ 2022-09-28 09:46 VipSoft 阅读(734) 评论(0) 推荐(1)
摘要: 驼峰下划线互转 /** * 将驼峰风格替换为下划线风格 */ public static String camelhumpToUnderline(String str) { final int size; final char[] chars; final StringBuilder sb = ne 阅读全文
posted @ 2022-09-21 09:30 VipSoft 阅读(126) 评论(0) 推荐(0)
摘要: Vue3+vite+ts 没找到类似的解决方案 没有使用 package.json 进行配置 ,改配置时不需要重新打包 Vue 多环境配置 package.json settings.js,并将其添加到 public/index.html 中 <!DOCTYPE html> <html> <head 阅读全文
posted @ 2022-09-15 15:10 VipSoft 阅读(275) 评论(0) 推荐(0)
摘要: Spring Boot JWT 用户认证 JWT token验证后,通过 ThreadLocal 进行传值,在服务层直接使用 Threadlocal 获取当前用户,的Id、姓名,进行行为记录 定义一个用户实体类 package com.vipsoft.core.user.entity; import 阅读全文
posted @ 2022-09-13 21:27 VipSoft 阅读(390) 评论(0) 推荐(0)
摘要: 数据库 SQL SERVER 2008,连接时报:[IM002]Navicat ODBC驱动器管理器 未发现数据源名称并且未指定默认驱动程序 到安装目录下找到 sqlncli_x64.mis 双击安装 下一步,直到安装完成 阅读全文
posted @ 2022-09-07 14:26 VipSoft 阅读(1697) 评论(0) 推荐(0)
摘要: [2022-09-07 11:45:35.517] [Druid-ConnectionPool-Create-5339735] [ERROR] com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url: 阅读全文
posted @ 2022-09-07 12:00 VipSoft 阅读(6183) 评论(0) 推荐(0)
摘要: SpringBoot 配置多数据源 无非就是namespace写错了、mapper接口或者xml文件名字没对应上等 mapper.xml中的namespace和实际的mapper文件不一致 mapper接口中的方法名和mapper.xml中的id标签不一致 Mapper.xml没有构建进去 打开ta 阅读全文
posted @ 2022-09-07 11:23 VipSoft 阅读(106) 评论(0) 推荐(0)
摘要: SpringBoot 接口输出文件流 & Vue 下载文件流,获取 Header 中的文件名 为什么浏览器中有些文件点击后是预览,有些是下载:https://www.cnblogs.com/vipsoft/p/18267174 Spring Boot 接口返回文件流 :https://www.cnb 阅读全文
posted @ 2022-09-06 17:50 VipSoft 阅读(3272) 评论(0) 推荐(0)
摘要: 根据前端传入不同的支付code,动态找到对应的支付方法,发起支付。我们先定义一个注解。 @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface PayCode { String value(); 阅读全文
posted @ 2022-09-05 09:25 VipSoft 阅读(132) 评论(0) 推荐(0)
摘要: Spring Boot 在Windows CMD 中运行,日志输出中文乱码name="CONSOLE" 设置成 charset utf-8 ,在windows cmd 中运行时,log日志输出显示乱码,去掉即口 <appender name="CONSOLE" class="ch.qos.logba 阅读全文
posted @ 2022-09-01 14:43 VipSoft 阅读(1612) 评论(0) 推荐(1)
摘要: logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration> <!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径--> <!--<property name="LOG_HOME" value="${LOG 阅读全文
posted @ 2022-09-01 14:38 VipSoft 阅读(821) 评论(0) 推荐(0)
摘要: Windows 资源管理器 CPU100% win + R打开运行框并输出:services.msc 点击确定打开服务;将服务中的Problem Reports Control Panel Support、HomeGroup Listener、HomeGroup Provider 三个服务禁用;(红 阅读全文
posted @ 2022-08-31 13:26 VipSoft 阅读(496) 评论(0) 推荐(0)
摘要: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc 有一种可能,就是配置文件里面没有赋值 @FeignClient(name = "vipsoft-a 阅读全文
posted @ 2022-08-29 17:03 VipSoft 阅读(449) 评论(0) 推荐(0)
摘要: JAVA PDF 截取N页,生成新文件,转图片,多个PDF 合并 <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.13</version> </dependency 阅读全文
posted @ 2022-08-25 16:48 VipSoft 阅读(850) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 57 下一页