当前位置:网站首页>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 
边栏推荐
- Solution of phpstudy service environment 80 port occupied by process system under Windows
- WordPress function encyclopedia, you can do the theme after learning it
- How does PHP remove an element from an array based on the key value
- WordPress removes the website publishing time
- wordpress去掉网站发布时间
- The fifth article in the series of radar Fundamentals: the function of radar modulation style
- Hj7 take approximate value
- [QNX hypervisor 2.2 user manual]9.7 generate
- anaconda安装教程环境变量(如何配置环境变量)
- Data broker understanding
猜你喜欢

Secure code warrior learning record (IV)

Take away applet with main version of traffic / repair to add main access function of traffic

How does Navicat modify the language (Chinese or English)?

多模态——Deep Multi-Modal Sets

Several commonly used traversal methods

Wamp MySQL empty password

About using NPM command under the terminal, the installation error problem is solved (my own experience)

Unity uses macros

WebMvcConfigurationSupport

Secure code warrior learning record (III)
随机推荐
Node基础
类和对象(2)(6个默认成员函数)
How does PHP remove an element from an array based on the key value
npm+模块加载机制
Unity uses macros
CSV generated by PHP cannot completely display the number with leading 0
Classes and objects (2) (6 default member functions)
行云管家V6.5.1/2/3系列版本发布:数据库OpenAPI能力持续强化
Implementation of mesh parameterized least squares conformal maps (3D mesh mapping to 2D plane)
TS function
@Import
Secure code warrior learning record (IV)
Firewall command simple operation
WordPress function encyclopedia, you can do the theme after learning it
[interface performance optimization] reasons for index failure and how to optimize SQL
Multimodal deep multi modal sets
四旋翼飞行器的飞控实现「建议收藏」
电商RPA,大促轻松上阵的法宝
Serialize common default values and column parameters
Hj7 take approximate value