摘要: 1.制作模板doc 2保存为xml 3用文本编辑工具打开xml,我这里用的notepad++,使用在线格式化工具格式化xml https://c.runoob.com/front-end/710/(在线格式化xml) 格式化如图:把被分开的标签调整一下 表格的velocity循环标签插入和结束: 方 阅读全文
posted @ 2022-09-17 22:54 liglacier 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 事情是这样的,再Ubuntu上部署的git环境由于我换盘了,导致问价权限不正确访问异常 使用命令 chmod -R 770 等授权操作都不生效。。。 最后参考这篇解决了: https://www.jianshu.com/p/c3564dfc5612 在/etc/fstab文件中添加一行,并保存 UU 阅读全文
posted @ 2022-07-30 23:41 liglacier 阅读(901) 评论(0) 推荐(0) 编辑
摘要: 事情是这样的 我的java环境变量配置好在哪个用户java -version都正常 注销用户后重新进入终端,但切到root用户下,java -version则无法识别, 需要执行:source /etc/profile 之后才能有用,但退出终端之后又无效,解决办法是: 在/root/.bashrc文 阅读全文
posted @ 2022-06-17 13:43 liglacier 阅读(563) 评论(0) 推荐(0) 编辑
摘要: pom需要引入spring-boot-starter-mail 如下: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </depen 阅读全文
posted @ 2021-12-31 14:47 liglacier 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 一键多列的map import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; public class Test { public static void ma 阅读全文
posted @ 2021-11-22 15:54 liglacier 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 在Java代码种频繁调用sql进行处理数据是比较费时间的。 那么对于插入这种我们可用mybatis的批量插入进行insert数据 而不是循环一次调一次insert 写法: mapper: Integer createPlanByListEntity(List<Entity> list); xml:p 阅读全文
posted @ 2021-07-05 17:17 liglacier 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: 近期在改一个老项目的时候现没操作cpu使用率也很高 如图: 1.展开三角可以看到pid 我这里pid是2960 2.然后以管理员身份 启动cmd(一定要以管理员身份) 输入 jstack -l 2960 > c:/2960.stack 然后就能在C盘目录下看到生成的 2960.stack文件 296 阅读全文
posted @ 2021-03-12 13:42 liglacier 阅读(482) 评论(0) 推荐(0) 编辑
摘要: centos7 下安装dockerdocker 架构:client客户端 docker_host服务 registry远程仓库docker_host:images 镜像 ;containers 容器 1.删除已经安装的旧版本[root@localhost /]# yum remove docker 阅读全文
posted @ 2021-03-04 13:41 liglacier 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 验证码生成。 使用的是import com.wf.captcha.SpecCaptcha; 这篇贴思路不沾代码 1 。new SpecCaptcha对象传入验证码的大小 2 。将验证码转换为base64 3。生成一个唯一的id (为了验证的时候能后对应上) 4.。将验证码id和base64的验证码图 阅读全文
posted @ 2021-03-02 17:24 liglacier 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: java 读取某路径下的文件直接相应到前端页面! 前端请求方式为get请求,只需要写个个按标签点击即可下载 import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; im 阅读全文
posted @ 2020-12-30 16:58 liglacier 阅读(3068) 评论(0) 推荐(0) 编辑