摘要: 由于在Spring定时器中无法通过注解的方式获取bean,因此需要通过原生的方式获取。获取session的方式如下: WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext(); SessionFactory 阅读全文
posted @ 2017-11-10 10:08 heyesp 阅读(913) 评论(0) 推荐(0) 编辑