摘要: 设置横向/纵向打印 脚本内添加 @page { size: auto; margin: 0mm; /* 纵向 */ /*size: portrait;*/ /* 横向 */ size: landscape; } html页面中,打印时添加分页标记 <div style="page-break-aft 阅读全文
posted @ 2024-05-12 23:14 le.li 阅读(8) 评论(0) 推荐(0) 编辑
摘要: <style> /** 去掉浏览器打印的页眉和页脚 **/ @page { size: auto; margin: 0mm } </style> 设置前: 设置后: 阅读全文
posted @ 2024-05-10 23:48 le.li 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 现象: 1、mvn install没有问题 2、idea build报错程序包com.alibaba.fastjson不存在 3、File -> Settings -> Build, Execution, Deployment ->Compiler 自动编译选项也是勾选的 解决: 1、委托maven 阅读全文
posted @ 2024-05-10 22:33 le.li 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 打开依赖的thymeleaf的jar包,看到很多thymeleaf expression(表达式),这些都是预置的 html body体内,使用方法: 以571行,Dates举例,打开org.thymeleaf.expression.Dates类 找到一个任意方法调用,如: 举例: html bod 阅读全文
posted @ 2024-05-09 00:12 le.li 阅读(1) 评论(0) 推荐(0) 编辑
摘要: js脚本中 var contextPath = "[[@{/}]]"; 建议添加双引号,不加双引号也可以识别 <style>配置的样式中 方式一,建议,方便检查: .custom { background: url('[[@{/path/xxx.png}]]'); background-repeat 阅读全文
posted @ 2024-05-08 23:55 le.li 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 同源,a标签downlaod属性浏览器基本都支持下载 非同源,提供两个下载方法 function downloadFile(url, filename) { fetch(url).then(response => { return response.blob(); }).then(blob => { 阅读全文
posted @ 2024-05-07 22:49 le.li 阅读(2) 评论(0) 推荐(0) 编辑
摘要: idea idea安装组件 File->Settings->plugins marketplace搜索安装javascript and typescript插件 (如果marketplace搜素搜索不到,搜索下installed里是否已经安装过了;如果已经安装过了且勾选框是选中的,去勾选插件,保存。 阅读全文
posted @ 2024-05-07 20:33 le.li 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 一般项目直接使用.jar文件 以server.port配置举例;以jar包内和jar包外说明内部和外部 配置文件顺序由高到底,如下: 外部-启动时指定参数 外部-环境变量 外部config/yml文件 外部yml文件 内部config/yml文件 内部yml文件 启动时,如果指定了激活的profil 阅读全文
posted @ 2024-05-02 12:28 le.li 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 检查是否存在插件:spring boot assistant,spring boot File->Setting; plugins,查看右侧“Installed” 不存在则安装spring boot assistant 默认插件中如果没有找到spring boot assistant,安装sprin 阅读全文
posted @ 2024-05-02 12:00 le.li 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 刚刚新建的springboot项目,启动日志显示成功了,但是服务却自动停了。 一种常见的问题是缺少必要的依赖项:Spring Boot Web 添加maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId 阅读全文
posted @ 2024-05-02 11:35 le.li 阅读(4) 评论(0) 推荐(0) 编辑