- 博客(19)
- 收藏
- 关注
原创 java集合类,List和Set比较,各自的子类比较(ArrayList,Vector,LinkedList;HashSet,TreeSet),Map集合比较
ArrayList,LinkedList,Vector都属于List List:元素是有顺序的,元素可以重复因为每个元素有自己的角标(索引) |-- ArrayList:底层是数组结构,特点是:查询很快,增删稍微慢点,线程不同步:A线程将元素放在索引0位置,CPU调度线程A停止,B运行,也将元素放在索引0位置,当A和B同时运行的时候Size就编程了2. |-- LinkedList:底层使用...
2018-03-06 15:04:33 2002
原创 个人博客系统(SSM)
简单做一个个人博客系统,以博客中的日记模块为例。后台使用easyui。数据库:personal_blog日记表:diary字段:创建Maven工程pom.xml文件 org.mybatis mybatis 3.4.1 mysql mysql-connector-java 5.1.29 org
2018-01-10 20:56:38 4964 1
原创 SpringMVC运行过程及涉及到的类解析
springmvc框架执行结构图:文字描述: 1.浏览器发起一个请求:http://localhost:80/ 2.先去指定服务器上查找项目 3.加载该项目的web.xml(DispatcherServlet前端控制器) 4.DispatcherServlet收到请求拦截到了,调用处理器映射器进行处理。 5.处理结果最终返回给Dispatc
2018-01-10 14:06:37 517
原创 JSTL表达式错误PropertyNotFoundException: Property 'title' not found on type java.lang.String
低级错误!!!异常:PropertyNotFoundException: Property 'title' not found on type java.lang.String解释:属性找不到异常:属性title找不到查询数据库正常,出现错误原因是jstl表达式书写错误正确写法!!!!谨记
2018-01-07 16:37:36 495
原创 BindingException: Invalid bound statement (not found): com.ssm.blog.dao.BlogDAO.getBlogList
异常:BindingException: Invalid bound statement (not found): com.ssm.blog.dao.BlogDAO.getBlogList解释:捆绑异常:无效的绑定声明检查错误步骤:1.检查dao层,service层和controller层方法是否实现并正确调用2.检查Mapper层的此方法3.检查spring-config.x
2018-01-07 15:55:05 358
转载 UnsatisfiedDependencyException NoUniqueBeanDefinitionException
原文地址:http://blog.csdn.net/u011731544/article/details/7898925306-Jan-2018 15:39:27.905 SEVERE [http-nio-8080-exec-3] org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable org.
2018-01-07 13:54:10 633
转载 java.lang.StackOverflowError
原文地址:http://blog.csdn.net/u011731544/article/details/789890672018-01-06 15:20:13,486 DEBUG [org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver] - Resolving exception from
2018-01-07 13:45:35 9222
原创 SSM文件上传封装工具类
SSM项目中文件上传controller层中文件上传代码重复过多,将其封装成工具类,方便以后的使用。resource.propertiesNOTICE_IMAGE_DIR=E:/upload/notice/NOTICE_IMAGE_URL=http://localhost:8080/upload/notice/Utils:public static String
2018-01-07 10:38:43 1228
转载 Could not get JDBC Connection;java.net.ConnectException: Connection refused: connect
原文地址:http://blog.csdn.net/u011731544/article/details/78986522连接被拒绝。出现这种问题的原因是:数据库服务没打开。启动数据库服务就好了 Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai
2018-01-06 20:57:08 447
转载 Access denied for user 'xxx'@'localhost'
原文地址:http://blog.csdn.net/u011731544/article/details/78986582 ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested
2018-01-06 20:48:13 2103
原创 MySQLIntegrityConstraintViolationException: Column 'ID' in where clause is ambiguous ;
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'ID' in where clause is ambiguous; SQL []; Column 'ID' in where clause is ambiguous; nested exception is com
2018-01-06 20:38:02 1657
转载 Invalid bound statement (not found)
原文地址:http://blog.csdn.net/u011731544/article/details/7898669806-Jan-2018 09:43:27.634 SEVERE [http-nio-8080-exec-6] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet
2018-01-06 20:33:29 555
转载 Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
原文地址:点击打开链接Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blogSe
2018-01-06 20:29:08 4156
转载 Result Maps collection does not contain value for.blog.dao.BlogDAO.int
原文地址:点击打开链接mybatis中报错:6-Jan-2018 12:08:04.280 SEVERE [http-nio-8080-exec-7] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [springMVC] in context with path
2018-01-06 20:24:48 320
转载 UnsatisfiedDependencyException NoSuchBeanDefinitionException
原文地址:点击打开链接[org.springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.
2018-01-06 20:01:20 691
转载 springMVC中404可能出现的原因
原文地址:点击打开链接1. 如果tomcat启动正常的话,就检查springMVC的配置,如果tomcat启动 都报错,就找原因去吧。2. 地址不正确或没有响应1) 检查Controller类上是否有@Controller注解。@RequestMapping加了没有,是不是在类上面加了父路径了?2) 检查SpringMVC的配置文件是否扫描了Controller所在的包
2018-01-06 17:54:45 2028
转载 maven pom.xml配置详解
原文地址:http://www.cnblogs.com/yangxia-test/p/4396159.html<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://m
2018-01-06 17:45:39 210
转载 springMVC中ajax请求响应406
原文地址:点击打开链接The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.意思是请求不被接受。出现这种情况一般都是用了@
2018-01-06 15:56:13 243
转载 MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 2 无效。
原文地址:点击打开链接'sqlSessionFactory' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to p
2018-01-06 15:41:12 599
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人