摘要: 查找占用端口的进程号: netstat -ano|findstr 9000 根据进程号查找占用端口的进程信息(16240 为进程号): tasklist|findstr 16240 关闭占用端口的进程: 使用进程号(16240 为进程号): taskkill /f /pid 16240 2.使用进程 阅读全文
posted @ 2024-03-06 09:48 guohf 阅读(1) 评论(0) 推荐(0) 编辑
摘要: @Primary@Bean(name = "sysSqlSessionFactory")public SqlSessionFactory setSqlSessionFactory(@Qualifier("sysDataSource") DataSource dataSource) throws Ex 阅读全文
posted @ 2021-07-29 15:45 guohf 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 一、文件上传大小配置 springboot 2.0以后 spirng: servlet: multipart: max-file-size: 100MB max-request-size: 100MB springboot 2.0以前 spring: http: multipart: max-fil 阅读全文
posted @ 2021-06-25 09:46 guohf 阅读(792) 评论(0) 推荐(1) 编辑
摘要: 一、Maven <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>2.8.3</version></dependency> <dependency> <groupId>or 阅读全文
posted @ 2021-06-11 16:21 guohf 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1. maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency><dependency> <groupId>o 阅读全文
posted @ 2021-05-28 10:46 guohf 阅读(279) 评论(0) 推荐(1) 编辑
摘要: <template> <div> <el-upload action="#" :style="fileList.length 0?'margin:10px;':'margin-top: 10px;'" list-type="picture-card" :on-change="uploadChange 阅读全文
posted @ 2021-05-25 14:49 guohf 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1.后端:public void getExcelTemplate(HttpServletResponse response) throws UnsupportedEncodingException { //文件名最好不要用中文,会出现中文乱码 InputStream inputStream = n 阅读全文
posted @ 2021-05-25 14:32 guohf 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 注意:导入的图片需为浮动图片 官方API:http://easypoi.mydoc.io 1.依赖 <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-base</artifactId> <version>3.2.0</v 阅读全文
posted @ 2021-05-25 14:26 guohf 阅读(4103) 评论(0) 推荐(0) 编辑
摘要: 1、查看路由表 route print 2、删除默认路由 route delete 0.0.0.0 route print 3、添加默认路由 将所有的网络转发到内网的默认网关 route add 0.0.0.0 mask 0.0.0.0 192.168.2.254 4.添加永久路由 route -p 阅读全文
posted @ 2020-12-08 10:08 guohf 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1.下载Mysql 8.0,解压 地址:https://dev.mysql.com/downloads/mysql/ 2. 添加到path中: 3.修改my.ini文件 [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] # 设 阅读全文
posted @ 2020-07-19 15:47 guohf 阅读(117) 评论(0) 推荐(0) 编辑