05 2024 档案
[IDEA]可以通过点击图标找到mapper.java关联的xml文件
摘要:关联前: 关联后: 点击小鸟图标,即到xml文件 从xml再次点击,返回mapper.java文件 过程: 菜单 File > Settings > Plugins 搜索mybatis,点击安装MyBatisX
阅读全文
[vue]执行vue --version报错:-4054 ENOSYS
摘要:npm install npm run dev 报错如下: win7_64 安装 vue/cli后, vue 命令执行返回: at Object.<anonymous> (D:\Program Files\nodejs\node_global\node_modules\@vue\cli\node_m
阅读全文
[js]使用浏览器打印事件window.print()设置横向;打印时添加分页标记
摘要:设置横向/纵向打印 脚本内添加 @page { size: auto; margin: 0mm; /* 纵向 */ /*size: portrait;*/ /* 横向 */ size: landscape; } html页面中,打印时添加分页标记 <div style="page-break-aft
阅读全文
[js]使用浏览器打印事件window.print()去掉页眉和页脚,设置
摘要:<style> /** 去掉浏览器打印的页眉和页脚 **/ @page { size: auto; margin: 0mm } </style> 设置前: 设置后:
阅读全文
[idea]mvn install没有问题,idea build报错程序包com.alibaba.fastjson不存在
摘要:现象: 1、mvn install没有问题 2、idea build报错程序包com.alibaba.fastjson不存在 3、File -> Settings -> Build, Execution, Deployment ->Compiler 自动编译选项也是勾选的 解决: 1、委托maven
阅读全文
[thymeleaf]springboot整合thymeleaf, html使用预置方法
摘要:打开依赖的thymeleaf的jar包,看到很多thymeleaf expression(表达式),这些都是预置的 html body体内,使用方法: 以571行,Dates举例,打开org.thymeleaf.expression.Dates类 找到一个任意方法调用,如: 举例: html bod
阅读全文
[Thymeleaf]springboot集成thymeleaf, html中读取上下文路径
摘要:js脚本中 var contextPath = "[[@{/}]]"; 建议添加双引号,不加双引号也可以识别 <style>配置的样式中 方式一,建议,方便检查: .custom { background: url('[[@{/path/xxx.png}]]'); background-repeat
阅读全文
[a]html中a标签跨域属性download无效,即预期下载变成了预览
摘要:同源,a标签downlaod属性浏览器基本都支持下载 非同源,提供两个下载方法 function downloadFile(url, filename) { fetch(url).then(response => { return response.blob(); }).then(blob => {
阅读全文
[JS] idea中javascript显示无背景色,不能点击大括号收起代码
摘要:idea idea安装组件 File->Settings->plugins marketplace搜索安装javascript and typescript插件 (如果marketplace搜素搜索不到,搜索下installed里是否已经安装过了;如果已经安装过了且勾选框是选中的,去勾选插件,保存。
阅读全文
[springboot]配置文件加载顺序
摘要:一般项目直接使用.jar文件 以server.port配置举例;以jar包内和jar包外说明内部和外部 配置文件顺序由高到底,如下: 外部-启动时指定参数 外部-环境变量 外部config/yml文件 外部yml文件 内部config/yml文件 内部yml文件 启动时,如果指定了激活的profil
阅读全文
[springboot] application.yml是变灰色的,不支持输入提示
摘要:检查是否存在插件:spring boot assistant,spring boot File->Setting; plugins,查看右侧“Installed” 不存在则安装spring boot assistant 默认插件中如果没有找到spring boot assistant,安装sprin
阅读全文
[springboot]一启动就自动停止了
摘要:刚刚新建的springboot项目,启动日志显示成功了,但是服务却自动停了。 一种常见的问题是缺少必要的依赖项:Spring Boot Web 添加maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId
阅读全文
[POM]idea安装pom文件maven依赖查询插件
摘要:安装前: 安装: Fle->Setting plugin->marketplace 搜索“”maven helper“”,点击install 安装后,下方多了“Dependency Analyzer”,支持查看全部依赖、依赖冲突,依赖树,过滤
阅读全文
[JS]bootstrapTable添加操作按钮
摘要:<script type="text/javascript"> <!-- 方法定义 --> function addFunctionToTable(value, row, index) { return [ '<button id="preview" type="button" class="btn
阅读全文