enilu / web-flash

web-flash -- Admin Framework and Mobile Website Based on Spring Boot and Vue.js
http://webflash.enilu.cn
MIT License
1.3k stars 365 forks source link

1.无登陆相关日志记录2.api运行报错 #29

Closed git1583 closed 5 years ago

git1583 commented 5 years ago

1.项目运行后,正常登录、登出、登录失败均无日志记录。 package cn.enilu.flash.service.system;

import cn.enilu.flash.bean.entity.system.LoginLog; import cn.enilu.flash.cache.ConfigCache; import cn.enilu.flash.dao.system.LoginLogRepository; import cn.enilu.flash.service.BaseService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional;

/**

} 2.api运行报错 org.quartz.JobExecutionException: org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field 'id' cannot be found on null at cn.enilu.flash.service.task.BaseJob.execute(BaseJob.java:20) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field 'id' cannot be found on null at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:213) at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:104) at org.springframework.expression.spel.ast.PropertyOrFieldReference.access$000(PropertyOrFieldReference.java:51) at org.springframework.expression.spel.ast.PropertyOrFieldReference$AccessorLValue.getValue(PropertyOrFieldReference.java:406) at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:90) at org.springframework.expression.spel.ast.OpPlus.getValueInternal(OpPlus.java:85)