![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
总有异常打扰我
Clearlove7·11
坚持一定有所得,永远不要让自己停止美好
展开
-
MySQL问题之“2003-Can‘t connect to MySQL server on ‘localhost‘(10038)的解决办法“
1、问题描述使用客户端登录mysql时,无法连接情况1: 使用Navicat for MySQL登录情况2: 使用mysql自带黑窗口客户端登录2、问题原因MySQL服务并未启动或者MySQL服务器异常,总之就是服务器的问题3、解决方式启动MySQL服务即可,可以使用任务管理器启动 或者 使用mysql黑窗口指令启动任务管理器启动mysql黑窗口指令启动此文希望可以帮助到大家。如有错误,请指教。 ...原创 2021-01-02 10:51:14 · 634 阅读 · 1 评论 -
使用windows指令解决端口占用问题
window7以上系统,使用管理员身份打开黑窗口!1、查找自定义应用程序对应的pid(进程编号)执行netstat -ano从执行结果中找到被占用的端口对应的进程pid2、根据pid关闭对应的进程继续执行指令杀死对应进程taskkill /F /pid 进程pid注意:只适用于关闭自己定义的应用程序!别乱关其他进程!后果自负!比如自定义的程序出现端口占用问题,也可以这样解决! 此文希望可以帮助到大家。如有错误,请指教。 ...原创 2020-06-06 14:32:29 · 200 阅读 · 0 评论 -
Hibernate异常之Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: cn...
1、异常描述Caused by: org.hibernate.MappingException:Repeated column in mapping for entity: cn.wang.entity.Student column:cid (should be mapped with insert="false" update="false")备注: 此处hibe...原创 2019-08-02 14:51:50 · 620 阅读 · 0 评论 -
Hibernate异常之org.hibernate.QueryParameterException: Position beyond number of declared ordinal .....
1、异常描述org.hibernate.QueryParameterException:Position beyond number of declared ordinal parameters.Remember that ordinal parameters are 1-based! Position: 1备注: 此处hibernate版本号:3.6.10.Final...原创 2019-08-01 17:48:02 · 4606 阅读 · 2 评论 -
Hibernate异常之org.hibernate.QueryException: Expected positional parameter count: 1, actual parameters
1、异常描述org.hibernate.QueryException: Expected positional parameter count: 1,actual parameters: [] [from Student where name like ?]备注: 此处hibernate版本号:3.6.10.Final2、示例代码2-1 StudentDao.jav...原创 2019-08-01 17:26:50 · 2353 阅读 · 0 评论 -
Hibernate异常之org.hibernate.ObjectNotFoundException: No row with the given identifier exists: .......
1、异常描述org.hibernate.ObjectNotFoundException:No row with the given identifier exists: [cn.wang.entity.Clazz#1005]备注: 此处hibernate版本号:3.6.10.Final2、示例代码2-1 Clazz.hbm.xml注意:此处已经关闭了Clazz的...原创 2019-08-01 17:13:27 · 268 阅读 · 0 评论 -
Hiberante异常之org.hibernate.LazyInitializationException: could not initialize proxy - no Session
1、异常描述org.hibernate.LazyInitializationException: could not initialize proxy - no Session备注: 此处hibernate版本号:3.6.10.Final2、示例代码:2-1 Clazz.hbm.xml<?xml version="1.0"?><!DOCTYP...原创 2019-08-01 16:52:55 · 171 阅读 · 0 评论 -
Hibernate异常之Exception in thread "main" org.hibernate.HibernateException: createQuery is not valid...
1、异常描述Exception in thread "main" org.hibernate.HibernateException: createQuery is not valid without active transaction备注: 此处hibernate版本号:3.6.10.Final2、示例代码以下是部分示例代码:public class Claz...原创 2019-08-01 16:30:06 · 431 阅读 · 0 评论 -
Hibernate异常之org.hibernate.HibernateException: /hibernate.cfg.xml not found
1、异常描述org.hibernate.HibernateException: /hibernate.cfg.xml not found备注: 此处hibernate版本号:3.6.10.Final2、分析原因一下是hibernate创建session工厂的示例代码: private static Configuration configure; pri...原创 2019-08-01 16:20:34 · 4525 阅读 · 0 评论 -
springmvc JSR 303服务器端参数校验异常之HV000030: No validator could be found for type: java.lang.Integer.
1、异常描述springmvc 中,支持服务器端的参数校验,例如可以控制参数不能为空,长度,或者可以控制时间类型的参数不能选择一个过去的时间等...其中,hibernate针对JSR 303 进行了实现。但是,使用的时候出现异常:HV000030: No validator could be found for type: java.lang.Integer.2、错...原创 2019-07-23 15:29:07 · 690 阅读 · 0 评论 -
Hibernate异常之 org.hibernate.LazyInitializationException: failed to lazily initialize a collecio....
1、异常描述org.hibernate.LazyInitializationException:failed to lazily initialize a collection of role: cn.wang.entity.Clazz.studentSet,no session or session was closed备注: 此处hibernate版本号:3.6...原创 2019-08-02 15:23:46 · 507 阅读 · 2 评论 -
springmvc异常之.....Consider declaring it as object wrapper for the corresponding primitive type....
一、错误描述使用springmvc处理请求参数时,出现异常500java.lang.IllegalStateException: Optional int parameter 'userId' is present but cannot be translated into a null value due to being declared as a primitive type. ...原创 2019-07-17 20:21:49 · 6247 阅读 · 0 评论 -
spring异常之: No tests found matching [{ExactMatcher:fDisplayName=testInjection], {ExactMatcher:fDis...
spring和junit整合测试java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testInjection],{ExactMatcher:fDisplayName=testInjection(testJection.TestJection)],{LeadingIdentifierMatch...原创 2019-07-17 14:55:08 · 519 阅读 · 0 评论 -
Spring+mybatis整合声明式事务异常之org.springframework.transaction.TransactionTimedOutException: Transaction ..
1、异常信息org.springframework.transaction.TransactionTimedOutException: Transaction timed out: deadline was Tue Jul 23 18:06:32 CST 2019...2、示例代码@Servicepublic class UserServiceImpl implements ...原创 2019-07-23 18:24:43 · 11281 阅读 · 9 评论 -
spring整合myabtis异常之Invocation of destroy method 'close' failed on bean with name 'sqlSessionTemplate'
1、异常描述spring和myabtis整合时,出现以下异常:-Invocation of destroy method 'close' failed on bean with name 'sqlSessionTemplate': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spr...原创 2019-07-18 19:53:13 · 4314 阅读 · 2 评论 -
mybatis异常之Error instantiating class cn.bdqn.entity.Provider with invalid types () or values ()
myabtis版本3.2.2Mybatis单独使用时 报错Caused by: org.apache.ibatis.reflection.ReflectionException: Error instantiating class cn.xx.entity.Provider with invalid types () or values (). Cause: java.lan...原创 2019-07-12 17:23:33 · 521 阅读 · 0 评论