- 博客(5)
- 收藏
- 关注
原创 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p
出现的报错信息:可能的几种原因:第一种:controller层里缺少注解,如@controller @responseBody第二种:service实现类里缺少注解@Autowired第三种:yml里面缺少配置,如图:
2021-02-11 13:23:32 390
原创 powerdesigner找不到自增中identity
是DBMS不正确选择Datebase——change current DBMS再次添加自增已完成自增
2021-02-07 19:31:44 229
原创 用注解的方式写一对多的SQL语句
先添加注解,比如查询@select(语句)@result(内容)many=@many(内容)如图:在many后面可以添加懒加载fetchType lazy最后需在mybatis-config.xml里配置文件
2021-02-03 21:50:08 366
原创 nested exception is java.sql.SQLException: Value ‘0000-00-00 00:00:00‘ can not be represented as jav
mysql连接mybatis时间查询语句报错:SQLException: Value ‘0000-00-00 00:00:00’ can not be represented as java.sql.Timestamp我刚开始以为是转换问题,因为我数据库时间类型是datetime,实现类写的Date,尝试用simpleDateFormat转string。也尝试过注解@DateTimeFormat或者JsonFormat等等最后,是因为数据库数据有问题,里面有一条0-0-0 0:0:0的数据导致的
2021-01-20 20:35:37 524
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人