org.springframework.beans.factory.BeanCreationException Error creating bean with name 'generatingCodeService' Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException Error creating bean with name 'generatingCodeMapper' defined in file [class路径] Invocation of init method failed; nested exception is java.lang.IllegalArgumentException Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
异常信息
123456789101112131415161718192021222324252627282930313233343536373839404142434445Error starting ApplicationContext. To display the conditions r ...
org.springframework.context.ApplicationContextException Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is reactor.core.Exceptions$ErrorCallbackNotImplemented java.lang.IllegalArgumentException Unable to find RoutePredicateFactory with name -Path
异常信息
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 ...
sql查询语句
按年分组统计
1select date_format(列名, '%Y') `year`, COUNT(*) count from 表名 group by date_format(列名, '%Y');
按月分组统计
1select date_format(列名, '%Y-%m') `month ...
IDEA使用Debug启动不了的解决办法
问题描述
1IDEA使用debug启动项目时,一直是启动状态,无法完成启动
解决方法
1取消所有项目中的断点后启动即可
com.sun.jersey.api.client.ClientHandlerException java.net.ConnectException Connection refused connect
异常信息
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253542020-07-28 22:52:24.257 ERROR 8096 --- [fres ...
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException Could not create connection to database server. Attempted reconnect 3 times. Giving up && java.sql.SQLException Access denied for user 'root'@'localhost' (using password YES)
异常信息
123456789101112131415161718192021222324252627282930313233343536Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConn ...
ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] 175 Servlet.service() for servlet [dispatcherServlet] in context with path [/system] threw exception [Request processing failed; nested exception is org.springframework.dao.TransientDataAccessResourceException Error attempting to get column 'createTime' from result set. Cause java.sql.SQLException Value '0000-00-00 00 00 00' can not be represented as java.sql.Timestamp; Value '0000-00-00 00 00 00' can not be represented as java.sql.Timestamp; nested exception is java.sql.SQLException Value '0000-00-00 00 00 00' can not be represented as java.sql.Timestamp] with root cause
异常记录
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 ...
使用IDEA搭建阿里云的Spring Boot项目
复制阿里云的Spring Boot项目生成地址
1https://start.aliyun.com
新建一个Spring Boot项目,勾选到Custom,将复制的地址粘贴到输入框中
后续步骤同Pivotal的Spring Boot项目一致,也就是我们常用的Spring Boot项目
...
Failed to bind properties under 'eureka.client.service-url' to java.util.Map<java.lang.String, java.lang.String> Reason No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, java.lang.String>]
异常信息
12345678910111213141516Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.22.289 ...
指定数据库运行SQL脚本成功后,未报异常,也未生成数据库表的原因
问题描述
1使用Navicat和SQLyog中指定数据库运行SQL脚本,运行过程中未抛出任何异常,但在运行完成后该数据库下却什么都没有生成
问题原因
1SQL脚本中指定了使用的数据库,当数据库存在时,会将已存在数据库的表修改,不存在的则会添加;当数据库不存在时会弹出异常提示
图片展示