- 博客(43)
- 资源 (2)
- 收藏
- 关注
原创 高并发,大数据你的系统该考虑哪些问题
1,订票系统案例,某航班只有一张机票,假定有1w个人打开你的网站来订票,问你如何解决并发问题(可扩展到任何高并发网站要考虑的并发读写问题) 问题,1w个人来访问,票没出去前要保证大家都能看到有票,不可能一个人在看到票的时候别人就不能看了。到底谁能抢到,那得看这个人的“运气”(网络快慢等) 其次考虑的问题,并发,1w个人同时点击购买,到底谁能成交?总共只
2015-04-27 16:12:36 694 1
原创 that was scary
decribe previous experience in a natural disaster using statements like i witness one when i was in Manila.the storm only last a few hours,and then it was over.once,a tree in our front yard
2015-04-26 22:56:22 670
原创 [Err] 1075 - Incorrect table definition; there can be only one auto column and it must be defined as
msyql 数据库 报错[Err] 1075 - Incorrect table definition; there can be only one auto column and it must be defined as a keysql 语句创建表,报错语句如下 create table users(id int not null auto_
2015-04-23 14:45:13 14502 2
原创 java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
2015-4-22 12:03:26 org.apache.catalina.core.StandardContext start严重: Error listenerStart2015-4-22 12:03:26 org.apache.catalina.core.StandardContext start严重: Context [/unicomsync] startup failed
2015-04-22 14:19:05 7457
原创 WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (bs.com.web.UnicomSyncServlet).log4j:WARN Please initialize the log4j system properly.从日志的上来看 真是log4j的bug 在web.xml 中加上以下配置 log4jCo
2015-04-22 12:07:46 526
原创 mysql count() 函数
create table testTable( id int, val int ); insert into testTable values(1, null); insert into testTable values(null, 1); insert into testTable values(1, 1); select count(
2015-04-22 10:02:55 411
原创 丢包,
丢包,故名思议,在通信中是指通信数据包丢失。数 据在通信网络上是以数据包为单位传输的,每个数据包中有表示数据信息和提供数据路由的帧。这就是说,不管网络情况有多好,数据都不是以线性(就像打电话一 样)连续传输的,中间总是有空洞的。数据包的传输,不可能百分之百的能够完成,因为物理线路故障、设备故障、病毒攻击、路由信息错误等原因,总会有一定的 损失。碰到这种情况,网络会自动的让通信的两端根据
2015-04-21 11:45:38 1621
原创 JSP共有以下9种基本内置组件 简介 jsp内置对象
简介可以不加声明就在JSP页面脚本(Java程序片和Java表达式)中使用的成员变量 内置组件JSP共有以下9种基本内置组件(可与ASP的6种内部组件相对应):request对象客户端的请求信息被封装在request对象中,通过它才能了解到客户的需求,然后做出响应。它是HttpServletRequest类的实例。
2015-04-21 11:37:24 2136
原创 Random类 (java.util)
Random类 (java.util) Random类中实现的随机算法是 伪随机,也就是有规则的随机。在进行随机时,随机算法的起源数字称为种子数(seed)在种子数的基础上进行一定的变换,从而产生需要的随机数字。相同种子数的Random对象,相同次数生成的随机数字是完全相同的。也就是说,两个种子数相同的Random对象,第一次生成的随机数字完全
2015-04-21 10:00:17 411
原创 nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframewo
:WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@5e8d7d{/mm,WebContent}org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mmdao' defined
2015-04-20 17:25:26 12371
原创 java.lang.IllegalArgumentException: matching editors or conversion strategy found
Servlet.service() for servlet default threw exceptionjava.lang.IllegalArgumentException: Cannot convert value of type [dxm.com.action.UserAction] to required type [dxm.com.vo.User] for property 'use
2015-04-15 17:56:59 630
原创 <property name="hibernate.hbm2ddl.auto">update</property>
hibernate session-factor配置一个属性 ,查一下这熟悉的用法 :update帮助文档解释为:在SessionFactory创建时,自动将数据库schema的DDL导出到数据库. 使用 create-drop时,在显式关闭SessionFactory时,将drop掉数据库schema.取值 update | create | crea
2015-04-15 12:08:22 8259 1
原创 nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/
搭建一个ssh框架Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanDefinitionStoreExc
2015-04-15 11:22:43 5498 1
原创 pageContext 用法
Insert title here//使用pageContext设置属性,该属性默认在page范围内pageContext.setAttribute("name","jason test");request.setAttribute("name","霖苑编程");session.setAttribute("name","霖苑计算机编程技术培训")
2015-04-11 15:08:48 1092
原创 org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog.
org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.at org.dom4j.io.SAXReader.read(SAXReader.java:482)a
2015-04-09 17:41:35 16915
原创 org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactoryat org.dom4j
2015-04-09 10:48:00 4874
原创 Failed startup of context org.mortbay.jetty.webapp.WebAppContext@480457{/bb,/webapp} java.io.FileNo
Logging to STDERR via org.mortbay.log.StdErrLog2015-04-08 18:27:13.678::INFO: jetty-6.1.42015-04-08 18:27:13.716::WARN: Web application not found /webapp2015-04-08 18:27:13.716::WARN: Failed
2015-04-08 18:28:27 14024 1
原创 byte【1024】
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2015-04-08 16:42:11 769
原创 org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. Nested exception:
log4j:WARN No appenders could be found for logger (bs.com.web.BsMmWeb).log4j:WARN Please initialize the log4j system properly.org.dom4j.DocumentException: Error on line 1 of document : Premature
2015-04-08 16:31:14 12591
原创 HTTP Status 404 - There is no Action mapped for namespace [/] and action name [BsMmWeb] associated w
HTTP Status 404 - There is no Action mapped for namespace [/] and action name [BsMmWeb] associated with context path [/mm].type Status reportok 在web.xml中 servlet 没有配置。
2015-04-08 15:02:10 468
原创 Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules
Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules?新建的项目不能运行?是因为啥原因呢 包版本问题吗?引用: http://jingwang0523.blog.163.com/blog/static/9090710320113294551497/
2015-04-08 12:02:06 273
原创 Jaxb annotation初步使用
一.Jaxb处理java对象和xml之间转换常用的annotation有:@XmlType@XmlElement@XmlRootElement@XmlAttribute@XmlAccessorType@XmlAccessorOrder@XmlTransient@XmlJavaTypeAdapter 二.常用annotation使用说明 @XmlType
2015-04-07 14:32:12 426
原创 XmlRootElement JAXB注解
XmlRootElement: 将类或枚举类型映射到 XML 元素。JAXB中的注解,用来根据java类生成xml内容。 当使用 @XmlRootElement 注释对顶层类或枚举类型进行注释时,类型值被表示为 XML 文档中的 XML 元素。 JAXB Annotation @XmlRootElement // xml 文件的根元素@XmlElement@XmlA
2015-04-07 14:13:49 546
原创 Mysql的数据类型
编写的时候发现mysql的数据类型 好像和sql server不太一样。了解一下 MySQL 的数值数据类型可以大致划分为两个类别,一个是整数,另一个是浮点数或小数。许多不同的子类型对这些类别中的每一个都是可用的,每个子类型支持不同大小的数据,并且 MySQL 允许我们指定数值字段中的值是否有正负之分或者用零填补。 表列出了各种 数值类型以及它们的允许范围
2015-04-03 17:51:47 289
原创 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
[SQL] create table t_department( departmentID Number not null, departmentName VARCHAR(20) not null, duty VARCHAR(20) not null,-- 职能 phone VARCHAR(20) not null, primary key(depar
2015-04-03 17:19:50 1524
原创 ssh 总结
一、Struts2:1、环境搭建:(1)倒包: struts核心包、xwork包、ognl包、struts-spring-plugin包(2)struts框架的配置文件及均配置:struts.xml,允许的配置如下: 1)include:包含其他的struts配置文件,其他的配置文件主要是按照功能模块划分,彼此独立,然后在struts.xml进行包含 2
2015-04-03 16:39:22 269
原创 Exception occurred during processing request: null
Hibernate: select user0_.id as id1_0_, user0_.username as username2_0_, user0_.userpwd as userpwd3_0_, user0_.note as note4_0_ from User user0_
2015-04-03 14:46:24 12812
原创 org.hibernate.hql.internal.ast.QuerySyntaxException: Admin is not mapped [from Admin where username=
严重: Exception occurred during processing request: Admin is not mapped [from Admin where username=:username and userpwd=:password]org.hibernate.hql.internal.ast.QuerySyntaxException: Admin is not map
2015-04-03 14:31:48 1947
原创 Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path reso
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed;ne
2015-04-03 14:24:01 13891 1
原创 BeanCreationException:Does the parameter type of the setter match the return type of the getter
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in class path resource [applicationContext.xml]: Error setting property values; nested exceptio
2015-04-03 11:50:22 4699
原创 org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class
Context initialization failedorg.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [dxm.com.dao.UserDaoImp] for bean with name 'userDao' defined in class path resource [a
2015-04-03 11:45:07 20922
原创 There is no Action mapped for namespace [/] and action name [] associated with context path [/dxm__s
2015-4-3 10:23:19 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error严重: Exception occurred during processing request: There is no Action mapped for namespace [/] and action name [] ass
2015-04-03 11:43:41 1297
原创 Context initialization failed org.springframework.beans.factory.BeanCreationException:
Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocati
2015-04-02 17:43:09 7670 1
原创 Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException:
Context initialization failedorg.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested excep
2015-04-02 17:38:24 1272
原创 org.hibernate.tool.hbm2ddl.SchemaUpdate execute ERROR: HHH000319: Could not get database metadata
struts+spring 框架的项目,spring配置文件 ,密码错误的。运行项目时报这个错,可见是在运行时去检验了数据库的连接的。这点与struts+hibernate不同。可能是因为hibernate有延迟机制。2015-4-2 17:31:44 org.hibernate.tool.hbm2ddl.SchemaUpdate executeERROR: HHH000319:
2015-04-02 17:36:01 16959 1
原创 HQL:Hibernate Qusery Language
HQL:Hibernate Qusery Language,假如你已经熟悉它,就会发现它跟SQL非常相像。不过 你不要被表面的假象迷惑,HQL是面向对象的(OO,用生命的眼光看待每一个对象,他们是如此 鲜活)。假如你对java和SQL语句有一定了解的话,那么HQL对你简直易如反掌,你完全可以利用在公车上的时间把握它。以下从几个方面进行慢慢深入:1。大小些敏感
2015-04-02 11:57:49 342
原创 Exception occurred during processing request: user is not mapped [from user where username=:username
严重: Exception occurred during processing request: user is not mapped [from user where username=:username and userpwd=:userpwd]org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped
2015-04-02 11:34:00 5291 1
原创 java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO) at com.mysql
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078)at com.mysql.jdbc.MysqlIO.checkErrorPacket(Mys
2015-04-02 11:03:53 707
原创 Guide to IPA Symbols
Guide to IPA SymbolsVowelsæ ask bat glad ɑ: cot bomb caught paw ɛ bet fed ə about banana collide i very any thirty i: eat bead bee ɪ id bid pit ʊ foot should put u: boot two
2015-04-01 22:50:08 859
原创 严重: Exception occurred during processing request: Unable to read XML
struts+hibernate框架 what's wrong?2015-4-1 16:11:04 com.opensymphony.xwork2.util.logging.jdk.JdkLogger error严重: Exception occurred during processing request: Unable to read XMLorg.hibernate.
2015-04-01 18:10:36 5621 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人