<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[twotw的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/twotw</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; twotw]]></copyright><item><title><![CDATA[hibernate hbm xml  关系映射]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/53894171</link><guid>https://blog.youkuaiyun.com/twotw/article/details/53894171</guid><author>twotw</author><pubDate>Tue, 27 Dec 2016 11:41:24 +0800</pubDate><description><![CDATA[me.hbm.xml文件是以me为己方的配置
…………元素中的属性是对己方的配置，name是me的属性名，column是me对应表里的列名



	
	

元素中的属性意义同上，而其子元素是对对方的配置，中的 column是对方表里对应的列名，中的class是对方的类型.]]></description><category></category></item><item><title><![CDATA[hibernate3 4内置session的get（） load（）方法]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/52847410</link><guid>https://blog.youkuaiyun.com/twotw/article/details/52847410</guid><author>twotw</author><pubDate>Tue, 18 Oct 2016 11:37:51 +0800</pubDate><description><![CDATA[hibernate3之后默认开启延迟加载，不考虑两级缓存的情况下：
get（）直接发出sql查询语句，查到则返回持久化对象，查不到返回null；
load（）先不发sql语句，而是用查询参数中的id新建一个Object（代理对象），并把id值放到这个Object中，需要使用到待查询对象ID以外的属性时，才发出sql语句，找不到就报org.hibernate.ObjectNotFoundExce]]></description><category></category></item><item><title><![CDATA[enum]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/52348213</link><guid>https://blog.youkuaiyun.com/twotw/article/details/52348213</guid><author>twotw</author><pubDate>Sun, 28 Aug 2016 22:05:05 +0800</pubDate><description><![CDATA[可以看成一个内容固定的集合.
public enum human{
man,woman
}


man woman 都是human的静态实例,可直接调用?


未完......................]]></description><category></category></item><item><title><![CDATA[数据库 sql  回顾2]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/52058960</link><guid>https://blog.youkuaiyun.com/twotw/article/details/52058960</guid><author>twotw</author><pubDate>Thu, 28 Jul 2016 21:40:57 +0800</pubDate><description><![CDATA[——查询部门工资均大于3000的部门及部门最低工资,以工资升序排列]]></description><category></category></item><item><title><![CDATA[数据库 mysql oracle 回顾]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51972917</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51972917</guid><author>twotw</author><pubDate>Wed, 20 Jul 2016 22:36:44 +0800</pubDate><description><![CDATA[——关系型数据库三范式:
1、列结构不变
2、每行有唯一标识区分
3、除主键列外，不同表的列不能重复




——oracle10g的客户端和服务器安装要在xp兼容模式下进行


——mysql命令行导入.sql文件:
mysql  -u用户名  -p密码  数据库名  
或者登录后 source 路径\xx.sql


——oracle导入sql文件
登陆后 @]]></description><category></category></item><item><title><![CDATA[JSON  servlet synchronized   error:A child container failed during start]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51750599</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51750599</guid><author>twotw</author><pubDate>Fri, 24 Jun 2016 18:00:03 +0800</pubDate><description><![CDATA[JSON数据结构中的数组结构                                   ——一般为｛“数组名”：[对象1，对象2，……]｝的形式，但也可以直接写成[对象1，对象2，……]


          ——多个页面同时请求一个servlet实例中的同一个方法时，可能造成竞争资源的冲突，可以在方法前加上synchronized锁避免冲突。




启动tomcat]]></description><category></category></item><item><title><![CDATA[泛型 <T>  继承]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51685812</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51685812</guid><author>twotw</author><pubDate>Wed, 15 Jun 2016 22:23:49 +0800</pubDate><description><![CDATA[public class TestGen extends FatherTestGen {}


表示TestGen继承自泛型父类FatherTestGen


Type genType = TestGen.class.getGenericSuperclass()                ——得到TestGen的泛型父类FatherTestGen


   Type[] ty]]></description><category></category></item><item><title><![CDATA[mysql Access denied for user root@localhost错误]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51674080</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51674080</guid><author>twotw</author><pubDate>Tue, 14 Jun 2016 19:23:58 +0800</pubDate><description><![CDATA[命令行登录mysql 报  Access denied for user root@localhost                                      ——可能是密码输错，注意小键盘是否打开，未打开状态按下小键盘，系统也能读取到输入，密码自然不对。


mysql导入附加数据库文件.sql                                       ]]></description><category></category></item><item><title><![CDATA[Synchronized]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51602878</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51602878</guid><author>twotw</author><pubDate>Tue, 07 Jun 2016 13:00:50 +0800</pubDate><description><![CDATA[Synchronized是一个同步标识,所修饰的方法和代码块称为同步方法和临界区。
Java中每一个对象都自带一个锁，锁自带一个计数器，默认为0。


1、Synchronized void Sync（）｛……同步方法……｝
一个对象在调用Synchronized方法时，自带的锁计数器自动+1。这时如果这个对象还想调用其他Synchronized方法，则会因为锁计数器不为0而被拒绝，直到]]></description><category></category></item><item><title><![CDATA[“人工智能”会让程序员失业吗？]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51472117</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51472117</guid><author>twotw</author><pubDate>Sat, 21 May 2016 20:34:12 +0800</pubDate><description><![CDATA[也许会。
没有哪个行业敢说自己能永远持续下去，大概除了卖X。
但就算程序员行业真的没落了，到那个时候，世界上的其他行业一定早就凋零殆尽了。


电脑就像一个潜力无穷的新生儿，程序员就是将这个世界上的所有事物、技能以电脑能听懂的方式解释给电脑的人。就像是导师，也像是翻译。
程序员教会了电脑自动导航，制作纸质地图的人就失业了；程序员教会了电脑管理企业资源（ERP OA等），从事传统方式管理]]></description><category></category></item><item><title><![CDATA[DOCTYPE声明 struts2与struts1区别]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51371758</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51371758</guid><author>twotw</author><pubDate>Wed, 11 May 2016 09:34:46 +0800</pubDate><description><![CDATA[XML文档的DOCTYPE声明                  ——            其中的XXXX即文档根元素的名称，如web-app，struts等。声明的意义就在于规定根元素编写的规范，也即整个文档编写的规范。


struts2与struts1区别：
struts.xml                                  ——struts2的xml文件要放到]]></description><category></category></item><item><title><![CDATA[struts1 hibernate spring  BasicDataSouce ContextLoaderListener  S1SH整合]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51325430</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51325430</guid><author>twotw</author><pubDate>Thu, 05 May 2016 18:53:37 +0800</pubDate><description><![CDATA[struts1       ——1、自动封装form，2、request→action层分发→service层处理业务逻辑→dao层访问数据


hibernate     —— dao → sessionFacroty → dataSource → DB


spring                  ——整合struts1和hibernate的桥梁，配置xml，对于struts]]></description><category></category></item><item><title><![CDATA[NoSuchMethodError: org.hibernate.SessionFactory.openSession]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51279665</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51279665</guid><author>twotw</author><pubDate>Fri, 29 Apr 2016 10:10:23 +0800</pubDate><description><![CDATA[NoSuchMethodError: org.hibernate.SessionFactory.openSession     —— hibernate3和4搞混了；


NoClassDefFoundError: org.hibernate.cache.CacheProvider    ——hibernate4里不再有这个类；



Position beyond number o]]></description><category></category></item><item><title><![CDATA[NullPointerException   createActionForm  ClassNotFoundException ContextLoaderPlugIn]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51259112</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51259112</guid><author>twotw</author><pubDate>Wed, 27 Apr 2016 10:31:55 +0800</pubDate><description><![CDATA[java.lang.NullPointerException  org.apache.struts.config.FormBeanConfig.createActionForm                                               ——从字面上看是form建立错误，首先确认struts-config.xml里  中的name和type没有配置错，以及自定义的f]]></description><category></category></item><item><title><![CDATA[PlatformTransactionManager spring config.xml datasource]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51191019</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51191019</guid><author>twotw</author><pubDate>Tue, 19 Apr 2016 15:35:22 +0800</pubDate><description><![CDATA[PlatformTransactionManager        ——在spring-tx-XXX.jar里面


Ctrl+Shift+X 变大写   Ctrl+Shift+Y 变小写



spring在config.xml里配置datasource的方式    
——
1、使用org.springframework.jdbc.datasource.DriverManage]]></description><category></category></item><item><title><![CDATA[struts1 hibernate el validation 注册登录]]></title><link>https://blog.youkuaiyun.com/twotw/article/details/51147659</link><guid>https://blog.youkuaiyun.com/twotw/article/details/51147659</guid><author>twotw</author><pubDate>Wed, 13 Apr 2016 22:47:07 +0800</pubDate><description><![CDATA[1、QuerySyntaxException: unexpected token
       ——hql语句中where错拼成whrer
2、The path of an ForwardConfig cannot be null          ——使用了validation的话，struts-config.xml里配置action必须加上input=某页面 ，因为validation验证]]></description><category></category></item></channel></rss>