thinkgem / jeesite

Java rapid development platform, based (Spring Boot, Spring MVC, Apache Shiro, MyBatis, Beetl, Bootstrap, AdminLTE), online code generation, including modules: Organization, role users, menu and button authorization, data permissions, system parameters, content management, workflow, etc. Loose coupling design is adopted; one key skin switch; account security Settings, password policies; Online scheduled task configuration; Support cluster, support SAAS; Support for multiple data sources
http://jeesite.com
Apache License 2.0
8k stars 5.66k forks source link

【日志没保存到数据库】修正方法 #114

Closed ghost closed 10 years ago

ghost commented 10 years ago

在public class LogInterceptor的afterCompletion方法前追加事务标签 @Override @Transactional(readOnly = false) public void afterCompletion

另外: public class Log extends BaseEntity { 改成: public class Log extends BaseEntity {

hizhengfu commented 10 years ago

感谢,也发现日志没有存库,没注意到是事务的问题。这个在LogService中增加save方法更合理了。

ghost commented 10 years ago

hiLogService中没有save,而且是在interceptor中处理,所有的操作都可以处理的

changziyu@126.com  发件人: hizhengfu发送时间: 2014-04-13 11:18收件人: thinkgem/jeesite抄送: Clark主题: Re: [jeesite] 【日志没保存到数据库】修正方法 (#114)感谢,也发现日志没有存库,没注意到是事务的问题。这个在LogService中增加save方法更合理了。

— Reply to this email directly or view it on GitHub.