自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 SpringCloud分布式项目中使用Feign发送请求注意事项

场景:通常会通过控制层(Controller)给业务层(Service)发送数据,而在分布式项目中,服务调用者一个项目,服务提供者也是一个项目,则会在调用者中通过Feign发送请求给服务,如下:@FeignClient(value = "service-demo", fallback = TbItemServiceHystrix.class)public interface TbItemSe...

2019-10-08 14:39:46 365

原创 SpringBoot项目引入分页助手插件

前言:SpringCloud的分布式项目也同理在Service层所在项目中进行如下操作在业务层(Service层)中引入如下依赖:<dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifact...

2019-10-08 14:24:37 819

转载 FastDFS重启后上传文件报错的解决方案

报错:ERROR - file: tracker_proto.c, line: 48, server: 109.24.249.40:22122, response status 2 != 0tracker_query_storage fail, error no: 2, error info: No such file or directory解决:pkill -9 fdfs/us...

2019-09-22 20:19:39 718

原创 文件下载及web文件的contentType类型大全

文件下载及web文件的contentType类型大全String filePath="";File file=new File(filePath);//解决乱码问题String filename=URLEncoder.encode(file.getName(),"utf-8");//重置输出流response.reset();Response.AddHeader("Conte...

2019-09-20 19:06:29 817

原创 关于idea启动springboot项目时jsp页面出现404问题的原因及解决措施

前提概要:最近使用springboot搭建聚合项目时遇到需要用jsp做视图的场景,在web层的pom.xml中已经引入了jsp的相关依赖: <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tom...

2019-09-20 14:39:15 3486 4

原创 小记:前端发送时间到后台无法接受问题

场景:前台发送date数据到后台localhost:8080/xxx/xxx?birthdate=2019-09-16后台使用实体类进行映射接收实体类中对应的Date类型属性为private class XXX { ... Date birthdate;}具体情况:前端发送数据,页面响应状态为404,后台无执行接收数据后的后续流程解决措施:需要对实体类的Date类型属性进...

2019-09-16 14:25:12 441

原创 easyUI设置datagrid行高

设置datagrid的行高,通过修改datagrid-btable tr的css即可实现 //示例:  <div id="table_div" style="width: 100%;height: 100%">   <table id="data"></table>  </div>    <style>   #table_...

2019-09-15 17:24:39 758

原创 easyui小记:form表单提交响应内容处理为json格式

用户可以在提交完成后获取响应数据。注意,响应的数据是来自服务器的原始数据。例如,响应数据假设为JSON,一个典型的响应数据格式如下:{ "success": true, "message": "Message sent successfully." } 现在需要在’success’回调函数中处理JSON字符串。 $('#form').form('subm...

2019-09-10 20:12:14 1387

原创 easyui dialog 按钮居中

easyui dialog 按钮居中在html文件中增加样式:<style type="text/css"> .dialog-button { padding: 5px; text-align: center; } </style>

2019-09-09 10:22:22 1111

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除