﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-一竿残照.金棣 @ blogJava.net</title><link>http://www.blogjava.net/codemyth/</link><description>脚往哪儿,路往哪儿</description><language>zh-cn</language><lastBuildDate>Thu, 23 Apr 2026 20:53:32 GMT</lastBuildDate><pubDate>Thu, 23 Apr 2026 20:53:32 GMT</pubDate><ttl>60</ttl><item><title>配置postgresql手记</title><link>http://www.blogjava.net/codemyth/archive/2005/09/08/12399.html</link><dc:creator>一竿残照.金棣 @ blogJava.net</dc:creator><author>一竿残照.金棣 @ blogJava.net</author><pubDate>Thu, 08 Sep 2005 01:55:00 GMT</pubDate><guid>http://www.blogjava.net/codemyth/archive/2005/09/08/12399.html</guid><wfw:comment>http://www.blogjava.net/codemyth/comments/12399.html</wfw:comment><comments>http://www.blogjava.net/codemyth/archive/2005/09/08/12399.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/codemyth/comments/commentRss/12399.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/codemyth/services/trackbacks/12399.html</trackback:ping><description><![CDATA[<FONT face="Courier New" size=2>没有使用官方的安装包,而是下载的zip解压包.<BR>解压后,可以象下面这样操作 <BR><BR>首先新建一个windows用户postgres(这个可以变的) <BR><BR>给予postgres用户对目录的操作权限 <BR></FONT><FONT face="Courier New"><FONT size=2><FONT color=#800080><STRONG>cacls . /E /T /D postgres <BR>cacls . /E /T /G postgres:R <BR>cacls .\data /E /T /P postgres:C</STRONG></FONT> <BR><BR>将数据库注册为windows服务 <BR><STRONG><FONT color=#800080>.\bin\pg_ctl register -N myPostgresServer -d .\data -Upostgres -Ppostgres</FONT></STRONG> <BR>其中myPostgresServer是自定义的服务名,两个postgres分别是新建的windows用户的名称和密码<BR>&nbsp;<BR>创建数据库 <BR>执行<STRONG><FONT color=#800080>.\bin\initdb.exe</FONT></STRONG>,将会创建缺省的template1数据库,(这一步需要使用<STRONG><FONT color=#800080>runas /user:postgres cmd</FONT></STRONG>进入命令行,否则postgres会拒绝管理员操作,因为postgres认为这样不安全) <BR>然后 <STRONG><FONT color=#800080>psql -dtemplate1 -Upostgres</FONT></STRONG>进入postgres操作终端, <BR><FONT color=#800080><STRONG>create database myDatabase</STRONG></FONT> <BR><FONT color=#800080><STRONG>\q</STRONG></FONT>退出 <BR></FONT></FONT><FONT face="Courier New"><FONT size=2><STRONG><FONT color=#800080>psql -dmyDatabase -Upostgres<BR></FONT></STRONG>进入postgres并连接到新建立的数据库 (还不知道怎么切换数据库,:( <BR><BR>下面是一些常用的sql语法 <BR>\l列出所有数据库名称 <BR>\dp列出所有的表 <BR>select current_time;当前时间 <BR>select version();posgres版本 <BR>select user;当前登录用户 <BR>postgres中没有datetime类型,如果你要那种有日期和时间的需要使用timestamp <BR><BR>最后我是在winXP pro +SP2上运行的postgres8.0.3 <BR><BR>使用create database someDb <STRONG><FONT color=#0000ff>with encoding='euc_cn'</FONT></STRONG>创建中文支持,<BR>jdbc驱动:</FONT></FONT><FONT face="Courier New"><FONT size=2><STRONG><FONT color=#0000ff>org.postgres.Driver<BR></FONT></STRONG>hibernateDialect::<FONT color=#0000ff><STRONG>org.hibernate.dialect.PostgreSQLDialect</STRONG></FONT><BR>连接:<FONT color=#0000ff><STRONG>jdbc:postgresql://localhost/someDb</STRONG></FONT></FONT></FONT><img src ="http://www.blogjava.net/codemyth/aggbug/12399.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/codemyth/" target="_blank">一竿残照.金棣 @ blogJava.net</a> 2005-09-08 09:55 <a href="http://www.blogjava.net/codemyth/archive/2005/09/08/12399.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>hibernate在eclipse中</title><link>http://www.blogjava.net/codemyth/archive/2005/08/22/10705.html</link><dc:creator>一竿残照.金棣 @ blogJava.net</dc:creator><author>一竿残照.金棣 @ blogJava.net</author><pubDate>Mon, 22 Aug 2005 09:05:00 GMT</pubDate><guid>http://www.blogjava.net/codemyth/archive/2005/08/22/10705.html</guid><wfw:comment>http://www.blogjava.net/codemyth/comments/10705.html</wfw:comment><comments>http://www.blogjava.net/codemyth/archive/2005/08/22/10705.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/codemyth/comments/commentRss/10705.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/codemyth/services/trackbacks/10705.html</trackback:ping><description><![CDATA[<P><BR>2005-8-20 09:13下午</P>
<P>hibernate 显式使用trasaction通常用于跨越多个http get请求的事务要求时使用,否则可以直接使用隐式的事务模式</P>
<P>&nbsp;</P>
<P>hibernate开发步骤<BR>1.撰写所有的pojo与数据库对应<BR>2.撰写与pojo对应的hbm.xml<BR>3.撰写业务操作类,操作pojo<BR>4.撰写配置hibernate.cfg.xml<BR>5.撰写build.xml自动部署<BR>5.发布:hibernate3.jar</P>
<P>&nbsp;</P>
<P>为hibernate程序提供运行参数的方式:<BR>1.<BR>Configuration cfg = new Configuration()<BR>&nbsp;&nbsp;&nbsp; .addClass(org.hibernate.auction.Item.class)<BR>&nbsp;&nbsp;&nbsp; .addClass(org.hibernate.auction.Bid.class)<BR>&nbsp;&nbsp;&nbsp; .setProperty("hibernate.dialect", "org.hibernate.dialect.MySQLInnoDBDialect")<BR>&nbsp;&nbsp;&nbsp; .setProperty("hibernate.connection.datasource", "java:comp/env/jdbc/test")<BR>&nbsp;&nbsp;&nbsp; .setProperty("hibernate.order_updates", "true");<BR>向configuration传递java property<BR>2.撰写hibernate.properties文件在classpath的根目录<BR>3.使用java -Dname=value提供参数<BR>4.在hibernate.cfg.xml文件中使用property节点</P>
<P>开发过程中曾出现的问题:<BR>*.cfg.xml中的class节点写成"UserInfo",应该是"studyHibernate.UserInfo"</P>
<P>&nbsp;造成"cound not load mappings from userinfo.hbm.xml"异常"&nbsp;<BR>*.build.xml中的class节点写成"UserInfoManager",应该是"studyHibernate.UserInfoManager"<BR>*.将hbm.xml和cfg.xml放在的相应的包目录中应该将其放在src根目录下<BR>,否则造成"NoDefClassFound"异常.<BR>*.build.xml应放在项目目录下<BR>*.将db2java.zip拷贝到lib目录后,运行有错,说不能找到db2的jdbc驱动,原因是容器并不解压zip文件,将该文件名改为db2java.jar后运行正常<BR><BR>db2的jdbc连接有4种方式,ibm网站有一篇文章详述,我使用的如下的方式,<BR></P>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><SPAN style="COLOR: #008080">&nbsp;1</SPAN><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">&lt;?</SPAN><SPAN style="COLOR: #ff00ff">xml&nbsp;version='1.0'&nbsp;encoding='utf-8'</SPAN><SPAN style="COLOR: #0000ff">?&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;!</SPAN><SPAN style="COLOR: #ff00ff">DOCTYPE&nbsp;hibernate-configuration&nbsp;PUBLIC<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;3</SPAN><SPAN style="COLOR: #ff00ff"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"-//Hibernate/Hibernate&nbsp;Configuration&nbsp;DTD&nbsp;3.0//EN"<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;4</SPAN><SPAN style="COLOR: #ff00ff"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;5</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;6</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">hibernate-configuration</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;7</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;8</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">session-factory</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;9</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">10</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;Database&nbsp;connection&nbsp;settings&nbsp;</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">11</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="connection.driver_class"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">COM.ibm.db2.jdbc.net.DB2Driver</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">12</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="connection.url"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">jdbc:db2://localhost:50000/lw2005</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">13</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="connection.username"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">db2admin</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">14</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="connection.password"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">Db2admiN</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">15</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">16</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;JDBC&nbsp;connection&nbsp;pool&nbsp;(use&nbsp;the&nbsp;built-in)&nbsp;</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">17</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="connection.pool_size"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">18</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">19</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;SQL&nbsp;dialect&nbsp;</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">20</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="dialect"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">org.hibernate.dialect.DB2Dialect</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">21</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">22</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;Echo&nbsp;all&nbsp;executed&nbsp;SQL&nbsp;to&nbsp;stdout&nbsp;</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">23</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="show_sql"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">true</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">24</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="format_sql"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">true</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">25</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">26</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;Drop&nbsp;and&nbsp;re-create&nbsp;the&nbsp;database&nbsp;schema&nbsp;on&nbsp;startup&nbsp;</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">27</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hbm2ddl.auto"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">create</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">28</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">29</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">mapping&nbsp;</SPAN><SPAN style="COLOR: #ff0000">resource</SPAN><SPAN style="COLOR: #0000ff">="userinfo.hbm.xml"</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">30</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">31</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">session-factory</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">32</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080">33</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">hibernate-configuration</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV></DIV>
<P><BR>&nbsp;</P><img src ="http://www.blogjava.net/codemyth/aggbug/10705.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/codemyth/" target="_blank">一竿残照.金棣 @ blogJava.net</a> 2005-08-22 17:05 <a href="http://www.blogjava.net/codemyth/archive/2005/08/22/10705.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>tomcat+webwok学习笔记.配置篇</title><link>http://www.blogjava.net/codemyth/archive/2005/08/06/9453.html</link><dc:creator>一竿残照.金棣 @ blogJava.net</dc:creator><author>一竿残照.金棣 @ blogJava.net</author><pubDate>Sat, 06 Aug 2005 00:15:00 GMT</pubDate><guid>http://www.blogjava.net/codemyth/archive/2005/08/06/9453.html</guid><wfw:comment>http://www.blogjava.net/codemyth/comments/9453.html</wfw:comment><comments>http://www.blogjava.net/codemyth/archive/2005/08/06/9453.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/codemyth/comments/commentRss/9453.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/codemyth/services/trackbacks/9453.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;&nbsp;这篇文章讲述搭建笔者(一个门外汉)学习webwork的第一步-----搭建webwork环境,并测试第一个程序.[过程]&nbsp;&nbsp;&nbsp;1.安装j2sdk.略&nbsp;&nbsp;&nbsp;2.安装tomcat,略&nbsp;&nbsp;&nbsp;3.解压webwork2.1.7,略&nbsp;&nbsp;&nbsp;&nbsp;&nb...&nbsp;&nbsp;<a href='http://www.blogjava.net/codemyth/archive/2005/08/06/9453.html'>阅读全文</a><img src ="http://www.blogjava.net/codemyth/aggbug/9453.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/codemyth/" target="_blank">一竿残照.金棣 @ blogJava.net</a> 2005-08-06 08:15 <a href="http://www.blogjava.net/codemyth/archive/2005/08/06/9453.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>appfuse是一个开发模板</title><link>http://www.blogjava.net/codemyth/archive/2005/08/02/8996.html</link><dc:creator>一竿残照.金棣 @ blogJava.net</dc:creator><author>一竿残照.金棣 @ blogJava.net</author><pubDate>Tue, 02 Aug 2005 02:52:00 GMT</pubDate><guid>http://www.blogjava.net/codemyth/archive/2005/08/02/8996.html</guid><wfw:comment>http://www.blogjava.net/codemyth/comments/8996.html</wfw:comment><comments>http://www.blogjava.net/codemyth/archive/2005/08/02/8996.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/codemyth/comments/commentRss/8996.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/codemyth/services/trackbacks/8996.html</trackback:ping><description><![CDATA[<A href="http://www.blogjava.net/codemyth">appfuse</A>是一个基于web应用程序模板,它的意义在于,它已经把整个web应用框架从数据库到表现层都搭建好了.并帮你生成你自己的应用程序的大部分代码,允许你定制各层使用的框架技术,例如你可以选择,orm层用什么,mvc用什么.同时它提供了eclipse和intelljidea的项目文件.<BR>将大大提高开发速度,我们不再需要关心框架技术的细节,只需要照葫芦画瓢,这个葫芦在<A href="http://raibledesigns.com/wiki/Wiki.jsp?page=CreateDAO_zh">这里</A>,而其安装的配置在<A href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseQuickStart_zh">这里</A><BR>我准备采用webwork+spring+hibernate的方式来学习.<BR><BR><BR><img src ="http://www.blogjava.net/codemyth/aggbug/8996.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/codemyth/" target="_blank">一竿残照.金棣 @ blogJava.net</a> 2005-08-02 10:52 <a href="http://www.blogjava.net/codemyth/archive/2005/08/02/8996.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>webwork准备工作</title><link>http://www.blogjava.net/codemyth/archive/2005/07/31/8875.html</link><dc:creator>一竿残照.金棣 @ blogJava.net</dc:creator><author>一竿残照.金棣 @ blogJava.net</author><pubDate>Sun, 31 Jul 2005 13:36:00 GMT</pubDate><guid>http://www.blogjava.net/codemyth/archive/2005/07/31/8875.html</guid><wfw:comment>http://www.blogjava.net/codemyth/comments/8875.html</wfw:comment><comments>http://www.blogjava.net/codemyth/archive/2005/07/31/8875.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.blogjava.net/codemyth/comments/commentRss/8875.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/codemyth/services/trackbacks/8875.html</trackback:ping><description><![CDATA[<P><FONT face="Courier New" size=2>这是这个blog 的第一篇文章,我准备用它来记录我学习java开源项目的过程.准备先看看webwork的自带例子.&nbsp;&nbsp;&nbsp;<BR><BR>下载了两篇文档,和webwork运行的必须环境,开始研究webwork.<BR><BR></FONT><FONT face="Courier New"><FONT size=2><STRONG>准备资源:<BR></STRONG><BR>webwork:</FONT></FONT><A href="http://www.opensymphony.com/"><FONT face="Courier New" size=2>http://www.opensymphony.com/</FONT></A><BR><FONT face="Courier New" size=2>tomcat:</FONT><A href="http://www.apache.org"><FONT face="Courier New" size=2>http://www.apache.org</FONT></A><BR><FONT face="Courier New" size=2>webwork的wiki:</FONT><A href="http://wiki.opensymphony.com/display/WW/WebWork"><FONT face="Courier New" size=2>http://wiki.opensymphony.com/display/WW/WebWork</FONT></A><BR><BR><BR><FONT face="Courier New" size=2>夏昕的开源文档(中文):</FONT><A href="http://www.xiaxin.net/Webwork2_Guide.rar"><FONT face="Courier New" size=2>http://www.xiaxin.net/Webwork2_Guide.rar</FONT></A><BR><FONT face="Courier New" size=2>moxie的开源文档:</FONT><A href="http://moxie.blogdriver.com/diary/moxie/inc/webwork.doc"><FONT face="Courier New" size=2>http://moxie.blogdriver.com/diary/moxie/inc/webwork.doc</FONT></A><BR><FONT face="Courier New" size=2>博客园.fantasy的webwork系列笔记:</FONT><A href="http://www.cnblogs.com/perhaps/category/11431.html"><FONT face="Courier New" size=2>http://www.cnblogs.com/perhaps/category/11431.html</FONT></A><BR><BR><BR><BR><BR><FONT face="Courier New"><FONT size=2><STRONG>准备工作:</STRONG><BR>将webwork的webwork-example.war拷贝到tomcat_home\webapps下<BR>启动tomcat,它会解压war包到webwork-example目录下<BR>访问</FONT></FONT><A href="http://localhost:8080/webwork-example"><FONT face="Courier New" size=2>http://localhost:8080/webwork-example</FONT></A><BR><BR><FONT face="Courier New" size=2>就可以访问到webwork自带的例子了.<BR></FONT></P><img src ="http://www.blogjava.net/codemyth/aggbug/8875.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/codemyth/" target="_blank">一竿残照.金棣 @ blogJava.net</a> 2005-07-31 21:36 <a href="http://www.blogjava.net/codemyth/archive/2005/07/31/8875.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>