摘要: 注意请求时要设置responseType,不加会中文乱码,被这个坑困扰了大半天。。。 axios post请求: download(index,row){ var ts = this; axios.post(this.paths.baseURL+'file/downloadFile', {path: 阅读全文
posted @ 2020-04-08 16:38 _Lawrence 阅读(2410) 评论(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 阅读(1460) 评论(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 阅读(924) 评论(0) 推荐(0)
摘要: 多文件保存到本地: @ResponseBody @RequestMapping(value = "/uploadApp",produces = { "application/json;charset=UTF-8" },method= RequestMethod.POST) public String 阅读全文
posted @ 2020-01-02 17:44 _Lawrence 阅读(3626) 评论(0) 推荐(1)
摘要: 方法一: @Configuration public class CrossConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.add 阅读全文
posted @ 2019-12-16 14:37 _Lawrence 阅读(280) 评论(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 阅读(1267) 评论(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 阅读(999) 评论(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 阅读(3351) 评论(0) 推荐(0)
摘要: public static String getIp(){ try { InetAddress ia=InetAddress.getLocalHost(); // String localname=ia.getHostName(); String localip=ia.getHostAddress( 阅读全文
posted @ 2019-10-31 10:28 _Lawrence 阅读(6027) 评论(0) 推荐(0)
摘要: //ScheduledThreadPoolExecutor每三秒执行一次 public static void main(String[] args) { ScheduledThreadPoolExecutor scheduled = new ScheduledThreadPoolExecutor( 阅读全文
posted @ 2019-10-25 15:30 _Lawrence 阅读(1200) 评论(0) 推荐(0)