![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发错误汇总
开发错误汇总
藓类少女
这个作者很懒,什么都没留下…
展开
-
报错:Resolved [org.springframework.orm.jpa.JpaSystemException: Unknown integral data type for ids
订单表order的主键订单id使用String类型,dao层OrderDAO继承JpaRepositorycontroller层使用@PostMapping进行新增订单时报错:WARN 5392 --- [io-8888-exec-10] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.orm.jpa.JpaSystemException: Unknown integral data type for原创 2020-05-21 18:32:09 · 1603 阅读 · 1 评论 -
报错:check the manual that corresponds to your MySQL server version for the right syntax
mysql数据库中建了order表,dao层OrderDAO继承了JpaRepository,想直接用其findAll()方法来取出order表的数据。结果一调用此方法控制台就报错:2020-05-20 16:29:39.338 WARN 3964 --- [io-8888-exec-10] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 1064, SQLState: 420002020-05-20 16:29:39.357 ERROR..原创 2020-05-20 16:51:41 · 3944 阅读 · 4 评论 -
springboot启动失败:Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init meth...原创 2020-05-20 10:18:29 · 1531 阅读 · 0 评论 -
springboot启动失败: Error creating bean with name ‘xxxController’(使用spring-data-jpa定义dao层)
报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminMenuController': Unsatisfied dependency expressed through field 'adminMenuService'; nested exception is org.springframework.beans.factory.Unsatisfi.原创 2020-05-19 12:47:23 · 9825 阅读 · 3 评论 -
springboot启动失败:java: -source 1.5中不支持默认方法(请使用-source 8或更高版本以启用默认方法)
报错信息:网上有很多这类错误的解决方法的文章,一般说修改java的版本为电脑上安装的Java的版本1.8。可参考此篇博客:IDEA中提示:Warning:java: 源值1.5已过时, 将在未来所有发行版中删除我的报错原因是用Maven新建的Moudle默认的目标字节码版本为1.5,使用Spring Assistant新建的Moudle的目标字节码版本为1.8那么将版本为1.5的改为1.8的就行了但是手动改完后,再次查看依旧变回1.5。解决方法:在需要改...原创 2020-05-18 17:23:44 · 3604 阅读 · 0 评论 -
springboot启动失败:Application failed to start with classpath
报错:16:07:41.725 [restartedMain] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/D:/Downloads/DMS1.0/dms-eureka/target/classes/]16:07:41.923 [background-preinit] DE.原创 2020-05-15 22:57:10 · 15929 阅读 · 0 评论 -
springboot启动失败
springboot启动失败:The following method did not exist:javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;解决方案:在File-->Settings中下载插件Maven Helper下载成功后重启IDEA,打开Dependency An...原创 2020-04-25 20:36:31 · 1212 阅读 · 0 评论