摘要: 不好用,转完问题挺多,还找不到资料头疼。public static void docxToHtml(String fileUrl) throws Exception { String path = fileUrl.substring(0,fileUrl.indexOf(".")); File fil 阅读全文
posted @ 2020-04-15 10:05 _Lawrence 阅读(2076) 评论(0) 推荐(0)
摘要: 全局加入如下样式即可(app.vue): body .el-table th.gutter{ display: table-cell!important; } 阅读全文
posted @ 2020-04-13 16:32 _Lawrence 阅读(3089) 评论(0) 推荐(1)
摘要: 注意请求时要设置responseType,不加会中文乱码,被这个坑困扰了大半天。。。 axios post请求: download(index,row){ var ts = this; axios.post(this.paths.baseURL+'file/downloadFile', {path: 阅读全文
posted @ 2020-04-08 16:38 _Lawrence 阅读(2359) 评论(0) 推荐(0)
摘要: 1、父组件获取子组件的数据和方法 $refs 子组件: <template> <div class="header"> <h3>{{ zz }}</h3> </div></template><script>export default { name: 'cx', data () { return { 阅读全文
posted @ 2020-01-15 12:02 _Lawrence 阅读(1451) 评论(0) 推荐(0)
摘要: icepdf转pdf文档为图片 首先导入icepdf jar包或maven pdfPath为pdf文件路径、pdfimgpsth为图片保存的路径 public static void icePdfImg(String pdfPath,String pdfimgpsth,HttpServletRequ 阅读全文
posted @ 2020-01-02 17:50 _Lawrence 阅读(905) 评论(0) 推荐(0)
摘要: 多文件保存到本地: @ResponseBody @RequestMapping(value = "/uploadApp",produces = { "application/json;charset=UTF-8" },method= RequestMethod.POST) public String 阅读全文
posted @ 2020-01-02 17:44 _Lawrence 阅读(3616) 评论(0) 推荐(1)
摘要: 方法一: @Configuration public class CrossConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.add 阅读全文
posted @ 2019-12-16 14:37 _Lawrence 阅读(275) 评论(0) 推荐(0)
摘要: 创建存储过程简单示例: DELIMITER //CREATE PROCEDURE ccgc()BEGINSELECT * FROM TEXT;SELECT * FROM s_user;END//DELIMITER ; //调用CALL ccgc() 创建带参数的存储过程: DELIMITER //C 阅读全文
posted @ 2019-11-25 15:38 _Lawrence 阅读(1260) 评论(0) 推荐(0)
摘要: application.yml datasource: type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://localhost:3306/risk?useUnicode=true&characterEncoding=utf8& 阅读全文
posted @ 2019-11-22 15:37 _Lawrence 阅读(993) 评论(0) 推荐(0)
摘要: 在logback.xml里加入如下配置即可: <include resource="org/springframework/boot/logging/logback/base.xml"/><logger name="org.springframework.jdbc.core" additivity= 阅读全文
posted @ 2019-11-21 15:24 _Lawrence 阅读(3328) 评论(0) 推荐(0)