
项目开发过程中_解决过的问题
文章平均质量分 62
lily_lee1213
努力努力再努力~
展开
-
Hibernate 初体验 之 配置Hibernate
要使用Hibernate,首先需要为项目加入Hibernate支持。所以选择用MyEclipse替代Eclipse来开发。(1)建立一个JAVA Project.(2)window→show View 打开DB Browser(3)在DB Browser 中新建(new)一个数据源原创 2017-03-17 21:19:17 · 288 阅读 · 0 评论 -
Mysql强制类型转换
Mysql强制类型转换原创 2017-02-20 22:37:48 · 6730 阅读 · 0 评论 -
java.lang.IllegalArgumentException org.springframework.asm.ClassReader.
运行Spring mvc的程序的时候报错了。 网上说可能是JDK的版本太高了,应该降到1.7以下,也有说Spring 的JAR包版本太低了,应该换到4.0以上,也有说是xml的文件配置的不对,或者是xml里面有写错了什么。原创 2017-03-16 20:28:26 · 1886 阅读 · 0 评论 -
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclips
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property'source' to 'org.eclipse.jst.jee.server:springmvcfirst1208' did not find amatching property.解决办法:1、在server控制台内,在服务器上点右键--属性2、general选项卡中点switch location这时,location变为:/servers/t原创 2017-03-16 20:37:23 · 1449 阅读 · 0 评论 -
ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start componen
ContainerBase.addChild: start:org.apache.catalina.LifecycleException: Failed to start component[org.apache.catalina.webresources.StandardRoot@4e579f] atorg.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441) atorg.原创 2017-03-16 20:42:20 · 4169 阅读 · 0 评论 -
eclipse配置tomcat8.5报错The Apache Tomcat installation at this directory is version 8.5.4. A Tomcat 8.0
新建server的时候出错了,我的tomcat版本是8.5,但是里面的选项是8.0,然后怎么添加路径都是:The Apache Tomcat installation at this directory is version 8.5.4. A Tomcat 8.0 installation is expected原创 2017-03-16 21:23:14 · 9380 阅读 · 0 评论 -
Hibernate 实战中の小问题
想要通过电话号码来更新用户的密码。 但是之前学习的是,如果想要更改,需要先查询,再更新。 这里有个问题,还得知道主键? 那就直接写update语句吧!原创 2017-04-03 18:31:36 · 236 阅读 · 0 评论 -
java.lang.ClassCastException: DB.Userinfo cannot be cast to [LDB.Userinfo; at Test.doHereGotoo.fun(
java.lang.ClassCastException: DB.Userinfocannot be cast to [LDB.Userinfo; atTest.doHereGotoo.fun(doHereGotoo.java:58) atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j原创 2017-04-03 18:37:11 · 454 阅读 · 0 评论 -
项目开发 中 的小收获
Lock wait timeout exceeded; try restarting transaction atorg.hibernate.dialect.MySQLDialect$1.convert(MySQLDialect.java:392) atorg.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) atorg.h原创 2017-04-03 18:58:39 · 1593 阅读 · 0 评论 -
在腾讯云上搭建服务器
在云上搭建服务器,并使用公网地址。原创 2017-02-23 16:13:22 · 10850 阅读 · 0 评论 -
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"] oFilter(Applicatio
org.apache.coyote.AbstractProtocol.stop StoppingProtocolHandler ["ajp-nio-8009"] oFilter(ApplicationFilterChain.java:165) 是端口占用的问题原创 2017-05-30 10:47:48 · 7605 阅读 · 0 评论 -
Truncated class file description The server encountered aninternal error that prevented it from fulf
类型转换错误 OR class文件受损原创 2017-05-30 10:55:16 · 768 阅读 · 0 评论 -
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface com.mysql.jdbc.Co
百度了好多,什么包依赖冲突,JDK版本不匹配,环境变量冲突,还有什么编译问题原创 2017-05-30 11:07:25 · 2251 阅读 · 0 评论 -
MYSQL动态修改列长度
MYSQL动态修改列长度原创 2017-02-21 22:29:49 · 710 阅读 · 0 评论 -
云服务器公网无法访问的问题
云服务器公网无法访问的问题原创 2017-02-23 16:39:08 · 768 阅读 · 0 评论 -
Hibernate の 学以致用
在Myeclipse下使用Hibernate支持自动生成类对象和xml的时候,每一步应该怎么做,选项里都要填什么。原创 2017-03-28 22:52:57 · 219 阅读 · 0 评论 -
自己动手的第一个 Hibernate后台代码
想要使用getCurrentSession,必须配置xml来绑定线程,在属性里面配好。原创 2017-03-28 23:00:20 · 461 阅读 · 0 评论 -
Hibernate の 如何根据数据库字段查询
HQL和Cretiaria应该都能实现。HQL语言也有两种实现方式:1、使用定位参数,2、绑定命名参数。原创 2017-03-28 23:13:39 · 1375 阅读 · 0 评论 -
org.hibernate.hql.internal.ast.QuerySyntaxException: userinfo is not mapped [from userinfo u where u
org.hibernate.hql.internal.ast.QuerySyntaxException:userinfo is not mapped [from userinfo u where u.phone= :phone] atorg.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180) atorg.hibernate.h原创 2017-03-28 23:23:04 · 6752 阅读 · 0 评论 -
添加Jar包
Servlet.service() for servlet in context with path threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: com.alibaba.fastjson.JSON at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa原创 2017-04-08 10:14:29 · 747 阅读 · 0 评论 -
preparedStatement.execute【犯傻心得】
preparedStatement.execute 使用过程中的易犯错误。原创 2017-02-28 23:26:18 · 1095 阅读 · 0 评论 -
既不报错也不执行的问题——自己的解决心得
用了preparedStatement,所以要么就是用try /catch来处理,要么就是在类上抛异常。原创 2017-02-28 23:15:03 · 1595 阅读 · 0 评论 -
WARN: EstablishingSSL connection without server's identity verification is not recommended
Mon Feb 27 20:41:02 CST 2017 WARN: EstablishingSSL connection without server's identity verification is not recommended.According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection mustb原创 2017-02-27 23:13:52 · 306 阅读 · 0 评论 -
Can not issue NULL query
问题描述: 判断一个用户的性别,是男生就用“-1”判断,是女生就用“1”来判断,根据男女不同,执行的sql语句也不同。前期我写了一个:String sql=null;接着就是用if语句判断男女,在if里面为sql赋值。但是测试的时候报错了,null query,debug的时候发现根本没有执行if语句。原因在这里:if(gender=="-1"){原创 2017-02-27 22:57:14 · 1993 阅读 · 0 评论 -
java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
java.sql.SQLException: Can not issue data manipulation statements with executeQuery().原创 2017-02-24 22:50:17 · 642 阅读 · 0 评论 -
JAVA实现求GPS两点之间的距离
需要获取和保存每一个用户的GPS信息,并在用户请求时返回所有用户与该用户的距离。原创 2017-02-24 22:16:46 · 2267 阅读 · 0 评论 -
java.sql.SQLException: Illegal operation on empty result set
java.sql.SQLException: Illegal operation on empty result set.原创 2017-02-23 17:28:13 · 4080 阅读 · 0 评论 -
java.sql.SQLException: Access denied for user 'ROOT'@'localhost' (using password: YES)
java.sql.SQLException: Access denied for user 'ROOT'@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870) at com.mysql.jdbc.MysqlIO.checkErrorPac原创 2017-02-23 17:08:34 · 841 阅读 · 0 评论 -
The JDBC Driver has been forcibly unregistered
registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.原创 2017-02-23 16:41:42 · 52804 阅读 · 0 评论 -
MyBatis报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): This application has no explicit mapping for /error, so you are seeing this as a fallback.There was an unexpected error (type=Internal Server Error, status=500).Invalid bound原创 2017-07-27 20:29:25 · 8398 阅读 · 0 评论