会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
_Lawrence
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
下一页
2020年4月8日
vue axios get和post请求下载文件,后台springmvc完整代码
摘要: 注意请求时要设置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)
2020年1月15日
vue组件之间值传递几种方法汇总
摘要: 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)
2020年1月2日
icepdf和pdfbox转pdf文档为图片
摘要: 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)
java文件上传、下载、图片预览
摘要: 多文件保存到本地: @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)
2019年12月16日
springboot前后端分离跨域
摘要: 方法一: @Configuration public class CrossConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.add
阅读全文
posted @ 2019-12-16 14:37 _Lawrence
阅读(280)
评论(0)
推荐(0)
2019年11月25日
mysql创建存储过程及调用
摘要: 创建存储过程简单示例: 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)
2019年11月22日
springboot集成JdbcTemplate+druid
摘要: 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)
2019年11月21日
jdbctemplate打印sql
摘要: 在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)
2019年10月31日
java获取当前服务器ip
摘要: 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)
2019年10月25日
timer和ScheduledThreadPoolExecutor定时任务和每日固定时间执行
摘要: //ScheduledThreadPoolExecutor每三秒执行一次 public static void main(String[] args) { ScheduledThreadPoolExecutor scheduled = new ScheduledThreadPoolExecutor(
阅读全文
posted @ 2019-10-25 15:30 _Lawrence
阅读(1200)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
下一页
公告