当前位置:网站首页>Grain Academy p98 trample pit e.globalexceptionhandler: null
Grain Academy p98 trample pit e.globalexceptionhandler: null
2022-07-25 23:24:00 【Cyclo-】
Report a mistake
2022-07-15 15:49:50.651 ERROR 10152 --- [nio-8001-exec-1] c.a.s.e.GlobalExceptionHandler : null
2022-07-15 15:49:50.654 ERROR 10152 --- [nio-8001-exec-1] c.a.s.e.GlobalExceptionHandler : GuliException(code=20002, msg= Failed to add course classification )
GuliException(code=20002, msg= Failed to add course classification )
at com.atguigu.eduservice.service.impl.EduSubjectServiceImpl.saveSubject(EduSubjectServiceImpl.java:38)
at com.atguigu.eduservice.service.impl.EduSubjectServiceImpl$$FastClassBySpringCGLIB$$e3ec89f4.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:685)
at com.atguigu.eduservice.service.impl.EduSubjectServiceImpl$$EnhancerBySpringCGLIB$$51228585.saveSubject(<generated>)
at com.atguigu.eduservice.controller.EduSubjectController.addSubject(EduSubjectController.java:39)
Code functions
Realize reading local excel, Upload the data to the database
error analysis

The error message above is also Thrown from here , But my level is limited , Unable to analyze anything , So try to output the original error .
The above catch modify
catch (Exception e){
e.printStackTrace();
}
You can see the following error report
com.alibaba.excel.exception.ExcelAnalysisException:
### Error updating database. Cause: java.sql.SQLException: Field 'gmt_create' doesn't have a default value
### The error may involve com.atguigu.eduservice.mapper.EduSubjectMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO edu_subject ( id, title, parent_id ) VALUES ( ?, ?, ? )
### Cause: java.sql.SQLException: Field 'gmt_create' doesn't have a default value
; Field 'gmt_create' doesn't have a default value; nested exception is java.sql.SQLException: Field 'gmt_create' doesn't have a default value

modify bug
When modifying or creating Give them default values , We have encapsulated the automatic assignment handler
The autofill class encapsulated here 
边栏推荐
- Scaffold installation
- Analysis of direction finding error of multi baseline interferometer system
- Mongodb update operator (modifier)
- 通用分页功能
- Computed and watch listening properties
- 推荐系统——An Embedding Learning Framework for Numerical Features in CTR Prediction
- Tips for using (1)
- Serialize operator
- POI special effects Market Research
- Discuz magazine / news report template (jeavi_line) utf8 GBK / DZ template download
猜你喜欢
随机推荐
Which securities firm is the best and safest for beginners to open an account
策略模式_
通用分页功能
新手开户选择哪个券商公司好呢?安全吗
理解的英文(言语理解)
idea设置get、set模板解决boolean类型字段的命名问题
ETL工具(数据同步) 二
anaconda安装教程环境变量(如何配置环境变量)
ASP date function (what if the disk function is incorrect)
Serialize data type
Very simple vsplayaudio online music player plug-in
加拿大EE通道
Custom MVC principle
【微信小程序】页面导航
@Autowired annotation required attribute
[interface performance optimization] reasons for index failure and how to optimize SQL
向下扎根,向上生长,探寻华为云AI的“根”力量
Ffmpeg first learning (only for coding)
Data filtering of MATLAB
谷粒学苑P98踩坑 e.GlobalExceptionHandler : null









