![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
一剑宵何
学习!
展开
-
Error updating database. Cause: java.sql.SQLException: Field 'id' doesn't have a default value
Springboot 通过mybatis使用数据库,xml文件如下:<insert id="insertUser" parameterType="user" useGeneratedKeys="true" keyProperty="id"> insert into t_user(user_name, note) values( #{userName}, #{note})...原创 2018-10-08 17:18:09 · 4202 阅读 · 1 评论 -
Application run failed
Springboot可以用spring-boot:run启动,但是不能用mainApplication启动.解决:<dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId> ...原创 2018-10-09 10:30:44 · 18965 阅读 · 0 评论 -
springboot+mybatis:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
出错日志:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.wisedu.dao.ProductDao.getProduct文件部署:mybatis.mapper-locations=classpath:com/wisedu/mapper/*.xmlmybat...原创 2018-10-10 15:43:26 · 965 阅读 · 2 评论 -
SpringBoot关于引用第三方jar包和部署jar包的问题
一、引用第三方jar包:1.新建lib目录放jar包,可在src下,也可以src目录并列目录如下:2.修改pom文件,添加外部依赖<dependency> <groupId>org.hyperledger.fabric-sdk-java</groupId> <artifactId>...原创 2018-12-14 14:46:09 · 1358 阅读 · 0 评论