Exceptions-异常
上官天夜
坚持就是胜利~~~
展开
-
Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zemel.dao.UserMapper.selectByPrimaryKey at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:18原创 2018-01-17 09:54:36 · 399 阅读 · 0 评论 -
Could not get JDBC Connection
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnection原创 2018-01-17 09:59:54 · 1643 阅读 · 0 评论 -
Failed to load ApplicationContext
1)现象java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99) at o原创 2018-01-17 10:07:34 · 35643 阅读 · 6 评论 -
mybatis集成springJPA出现的问题
1)问题描述Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/data/jpa]Offending resource: class path resource [spring-jpa.xml]...原创 2018-03-16 13:55:15 · 380 阅读 · 0 评论 -
Gradle Task的publishToMavenLocal功能报错---Could not find tools.jar
只需要右击打开Open Gradle Run Configuration配置Java Home之后重新Run Gradle Task原创 2018-10-28 21:07:21 · 3565 阅读 · 0 评论 -
SpringBoot-----依赖工程取不到配置信息
1、工程A取不到本身的配置信息????2、显示结果为nullpackage com.imooc.config;import java.net.MalformedURLException;import java.net.URL;import javax.annotation.Resource;import org.slf4j.Logger;import org.slf4...原创 2018-10-30 23:31:16 · 507 阅读 · 0 评论 -
SpringCloud-----Ribbon异常java.net.UnknownHostException
1、后台异常内容org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "ht...原创 2018-12-06 11:32:16 · 6476 阅读 · 3 评论 -
SpringCloud-----Hystrix的fallback method wasn't found
1、异常 2、分析异常内容,不难看出是,fallbackMethod配置的方法名错误3、原因fallbackMethod的方法签名和rest的方法不一致,导致的错误。修改成一致即可。@GetMapping("/get/{id}") @HystrixCommand(fallbackMethod="getFallback") public Dept get(@Pa...原创 2018-12-10 14:35:55 · 1763 阅读 · 0 评论 -
com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value '���
1、异常现场 . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_|...原创 2019-04-06 16:24:28 · 2433 阅读 · 0 评论