Spring
文章平均质量分 51
加加其
这个作者很懒,什么都没留下…
展开
-
Spring容器启动之后进行初始化操作
Spring容器启动之后进行初始化操作在开发项目中,经常会遇到这样的需求:项目启动之后需要进行一些初始化操作。在spring项目开发中可以使用下面两种方法完成。实现ApplicationListener接口使用@PostConstrut注解1. 实现ApplicationListener接口创建一个类实现ApplicationListener接口,同时监听ContextRefreshedEve原创 2017-04-28 17:13:10 · 6998 阅读 · 0 评论 -
Sping项目定时任务实现
Sping项目定时任务实现方法下面博客详细介绍了4中实现方法: http://blog.csdn.net/puma_dong/article/details/38032487?utm_source=tuicool&utm_medium=referralquartz 实现定时任务项目使用maven构建,shiro做权限控制,此时再使用quartz 做定时任务会出现jar包冲突问题如下:shiro-q原创 2017-05-07 21:01:08 · 364 阅读 · 0 评论 -
Quartz操作工具类
Quartz操作工具类,quartz 版本2.0.* 以上原创 2017-05-25 13:24:01 · 3920 阅读 · 0 评论 -
Spring Quartz动态设置触发时间问题
Spring使用Quartz框架来完成任务调度,并动态修改trigger时间原创 2017-05-25 13:20:56 · 3619 阅读 · 0 评论 -
in thread "main" ImportError: Cannot import site module and its dependencies: No module named site
1.问题:提示不能够导入site module一般在Java中调用Python,执行代码流程如下: Properties props = new Properties(); props.put("python.home", "F:\\spring-app\\src\\main\\webapp\\WEB-INF\\lib"); props.put("python.原创 2017-05-19 18:25:27 · 4636 阅读 · 0 评论 -
eclipse+java+tomcat+maven 开发环境配置
1.eclipse UTF-8编码配置Window->Preferences->General ->Content Type->Text 最下面填写UTF-8,点击updateWindow->Preferences->General->Workspace 面板Text file encoding 选择UTF-8Window->Preferences->Web->JSP Files 面板选择原创 2017-06-23 18:47:38 · 1306 阅读 · 0 评论