随笔分类 -  spring

摘要:Druid是Java语言中最好的数据库连接池,并且能够提供强大的监控和扩展功能。 业界把 Druid 和 HikariCP 做对比后,虽说 HikariCP 的性能比 Druid 高,但是因为 Druid 包括很多维度的统计和分析功能,所以这也是大家都选择使用它的原因。 首先配置 druid mav 阅读全文
posted @ 2017-08-13 14:55 #料 阅读(10353) 评论(1) 推荐(0)
摘要:框架架构: springboot+hibernate+freemarker+ueditor, tomcat内嵌在springboot里面,由于是内嵌,用ueditor上传图片,tomcat默认上传为1M,所以上传大图片就会报错。 报错为: nested exception is org.spring 阅读全文
posted @ 2016-10-08 14:08 #料 阅读(14380) 评论(0) 推荐(0)
摘要:1.创建项目 直接点下一步 原因: 不勾选 Create from archetype,是项目创建的骨架的时候,由于不知道什么原因就卡住了,一直在刷新 2.创建之后完成之后 添加依赖 阅读全文
posted @ 2016-07-22 17:29 #料 阅读(2710) 评论(0) 推荐(0)
摘要:报此错误 :org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0, 查询的结果集 为null,导致报错 阅读全文
posted @ 2016-07-11 16:21 #料 阅读(1064) 评论(0) 推荐(0)
摘要:格式说明:[秒] [分] [小时] [日] [月] [周] [年] 序号 说明 是否必填 允许填写的值 允许的通配符 1 秒 是 0-59 , - * / 2 分 是 0-59 , - * / 3 小时 是 0-23 , - * / 4 日 是 1-31 , - * ? / L W 5 月 是 1- 阅读全文
posted @ 2016-07-06 16:24 #料 阅读(170) 评论(0) 推荐(0)
摘要:参考: https://segmentfault.com/a/1190000004316491 阅读全文
posted @ 2016-06-27 16:14 #料 阅读(177) 评论(0) 推荐(0)
摘要:@SpringBootApplication@ComponentScan("com.xx")@EnableScheduling //定时任务扫描 此处用该注解,容器启动自动扫描public class PltxAdminApplication { /** * 启动嵌入式的Tomcat并初始化Spri 阅读全文
posted @ 2016-06-12 17:09 #料 阅读(2630) 评论(0) 推荐(0)
摘要:<dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>3.1.2.RELEASE</version> </dependency>vs <dependenc 阅读全文
posted @ 2016-02-02 16:27 #料 阅读(489) 评论(0) 推荐(0)
摘要:try { //根据String形式创建一个URL对象 String filePath = materialProductWorks.getDownloadImageUrl(); URL url = new URL(filePath); //实列一个URLconnection... 阅读全文
posted @ 2015-08-17 16:44 #料 阅读(220) 评论(0) 推荐(0)
摘要:ServletContext context = request.getSession().getServletContext();WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationCont... 阅读全文
posted @ 2015-08-17 14:09 #料 阅读(1169) 评论(0) 推荐(0)