Rory's Blog
          Happy study,Happy work,Happy life
          posts - 22,  comments - 46,  trackbacks - 0

          我的評論

          哦。是么?趕緊下載一個新版試試。
          以前都沒有注意。
          今天才注意到servlet的doc里面有寫過。
          public void setCharacterEncoding(java.lang.String env)
          throws java.io.UnsupportedEncodingExceptionOverrides the name of the character encoding used in the body of this request. This method must be called prior to reading request parameters or reading input using getReader().
          Parameters:
          a - String containing the name of the chararacter encoding.
          Throws:
          java.io.UnsupportedEncodingException - if this is not a valid encoding
          是么。不過我好像是可以的啊。
          除了。scheduler我好都設(shè)置的lazy-init
          re: 還是亂碼問題 莫多 2006-07-25 19:45  
          oc4j沒有用過。不過是不是也有地方可以配置的啊。
          是啊。都是這個問題,不過Robbin給出了最終解決方法。呵呵。
          http://www.javaeye.com/display/opensourceframework/HibernateUtils
          可以看看。
          我都用UUID,可是沒有你說的這個問題。
          不會有問題的,還有就是你用Hiberate3那么就用uuid
          你看源代碼就知道uuid.hex其實和uuid是一樣的了。只有在hibernate2里面才有區(qū)別。
          這個就是因為Hibernate的條件查詢的時候你可以addOrder()添加很多排序的方式。如果你在addOrder之后取totalcount那樣Hibernate也會把order by語句拼接到你的select count(*)語句后面。然而有的數(shù)據(jù)庫是不支持的。eg(SqlServer)所以就會出錯了。請看我的最新文章。
          re: 用ant進行項目無憂部署 莫多 2006-04-29 11:59  
          哦是么?沒有用過。原意賜教。
          re: openfans快速配置指南 莫多 2006-04-11 17:50  
          然后按照上面說的。運行mvn -Declipse.downloadSources=true eclipse:eclipse
          又抱錯誤找不到。
          [INFO] [compiler:compile]
          [INFO] Nothing to compile - all classes are up to date
          [INFO] [eclipse:eclipse]
          [WARNING] This plugin currently doesn't support include patterns for resources.
          Adding the entire directory.
          [WARNING] This plugin currently doesn't support include patterns for resources.
          Adding the entire directory.
          Downloading: http://www.ibiblio.org/maven2/org/springframework/spring-mock/1.2.6
          /spring-mock-1.2.6-sources.jar
          [WARNING] Unable to get resource from repository central (http://www.ibiblio.org
          /maven2)
          Downloading: http://www.openfans.org:81/maven2/org/springframework/spring-mock/1
          .2.6/spring-mock-1.2.6-sources.jar
          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] Failed to resolve artifact.

          Error transferring file
          org.springframework:spring-mock:java-source:1.2.6

          from the specified remote repositories:
          central (http://www.ibiblio.org/maven2),
          openfans (http://www.openfans.org:81/maven2)


          Caused by I/O exception: Connection refused: connect

          [INFO] ------------------------------------------------------------------------
          [INFO] For more information, run Maven with the -e switch
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 10 seconds
          [INFO] Finished at: Tue Apr 11 17:45:56 GMT+08:00 2006
          [INFO] Final Memory: 4M/8M
          [INFO] ------------------------------------------------------------------------
          re: openfans快速配置指南 莫多 2006-04-11 17:49  
          mvn eclipse:eclipse就不能通過。
          D:\Project\openfans>mvn eclipse:eclipse
          [INFO] Scanning for projects...
          [INFO] Searching repository for plugin with prefix: 'eclipse'.
          [INFO] -------------------------------------------------------------------------
          ---
          [INFO] Building openfans
          [INFO] task-segment: [eclipse:eclipse]
          [INFO] -------------------------------------------------------------------------
          ---
          [INFO] Preparing eclipse:eclipse
          [INFO] [resources:resources]
          [INFO] Using default encoding to copy filtered resources.
          [WARNING]
          Artifact javax.servlet:jstl:jar:1.1.2:runtime retains local scope 'runti
          me' overriding broader scope 'compile'
          given by a dependency. If this is not intended, modify or remove the loc
          al scope.

          [WARNING]
          Artifact jdom:jdom:jar:1.0:runtime retains local scope 'runtime' overrid
          ing broader scope 'compile'
          given by a dependency. If this is not intended, modify or remove the loc
          al scope.

          [WARNING]
          Artifact taglibs:standard:jar:1.1.2:runtime retains local scope 'runtime
          ' overriding broader scope 'compile'
          given by a dependency. If this is not intended, modify or remove the loc
          al scope.

          [INFO] [compiler:compile]
          [INFO] Nothing to compile - all classes are up to date
          [INFO] [eclipse:eclipse]
          [WARNING] This plugin currently doesn't support include patterns for resources.
          Adding the entire directory.
          [WARNING] This plugin currently doesn't support include patterns for resources.
          Adding the entire directory.
          [INFO] Not writing settings - defaults suffice
          [INFO]
          Sources for some artifacts are not available.
          Please run "mvn -Declipse.downloadSources=true eclipse:eclipse" in order
          to check remote repositories for sources.
          List of artifacts without a source archive:
          o org.springframework:spring-mock:jar:1.2.6
          o junit:junit:jar:3.8.1
          o commons-logging:commons-logging:jar:1.0.4
          o javax.servlet:servlet-api:jar:2.4
          o commons-digester:commons-digester:jar:1.5
          o geronimo-spec:geronimo-spec-jta:jar:1.0.1B-rc4
          o uk.ltd.getahead:dwr:jar:1.0
          o org.springframework:spring:jar:1.2.6
          o opensymphony:sitemesh:jar:2.2.1
          o com.lowagie:itext:jar:0.99
          o commons-validator:commons-validator:jar:1.1.3
          o javax.servlet:jstl:jar:1.1.2
          o asm:asm:jar:1.5.3
          o commons-dbcp:commons-dbcp:jar:1.2.1
          o jdom:jdom:jar:1.0
          o taglibs:standard:jar:1.1.2
          o oro:oro:jar:2.0.8
          o antlr:antlr:jar:2.7.6rc1
          o commons-beanutils:commons-beanutils:jar:1.6.1
          o commons-io:commons-io:jar:1.1
          o org.tuckey:urlrewrite:jar:2.5.2
          o xerces:xercesImpl:jar:2.0.2
          o p6spy:p6spy:jar:1.3
          o rome:rome:jar:0.8
          o commons-fileupload:commons-fileupload:jar:1.1
          o mysql:mysql-connector-java:jar:3.1.11
          o org.hibernate:hibernate:jar:3.1
          o displaytag:displaytag:jar:1.0
          o dom4j:dom4j:jar:1.6
          o cglib:cglib:jar:2.1_3
          o ehcache:ehcache:jar:1.1
          o commons-lang:commons-lang:jar:2.0
          o commons-collections:commons-collections:jar:2.1.1
          o springmodules:springmodules-validator:jar:0.1
          o log4j:log4j:jar:1.2.11
          o xml-apis:xml-apis:jar:1.0.b2
          o commons-pool:commons-pool:jar:1.2

          [INFO] Wrote Eclipse project for "openfans" to D:\Project\openfans.
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESSFUL
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 8 seconds
          [INFO] Finished at: Tue Apr 11 17:43:11 GMT+08:00 2006
          [INFO] Final Memory: 4M/8M
          [INFO] ------------------------------------------------------------------------
          to:劍事
          我是為了用hibernate才這樣做的啊,這樣我就不用再寫insert了啊。呵呵。
          To:yerba
          怎么沒有作用?
          cateManager.saveCategory(cate);
          用這個保存到我的新數(shù)據(jù)庫中的啊。
          為什么不要了? 不明白
          @anonymous
          也許很多人都認為這種是最好的方式,以前我也使這么認為的??墒乾F(xiàn)在我不這么認為。
          因為我們的webapp每天都要發(fā)布。而上傳的那個文件夾有好幾個G。這個問題就是發(fā)布的時候要去把那個目錄的東西都cut出來。然后再發(fā)布,發(fā)布完再把那個upload目錄放回去。而我們這樣做就是為了方便。把upload的files放到其地方去。這樣每天晚上12點去部署那個app就可以了。
          呵呵。我就是想實現(xiàn)這個的。今天我基本上實現(xiàn)了。用spring去注入的。
          re: spring培訓(xùn)-筆記 莫多 2006-03-01 10:44  
          <bean
          id="beanId"(1)
          name="beanName"(2)
          class="beanClass"(3)
          parent="parentBean"(4)
          abstract="true | false"(5)
          singleton="true | false"(6)
          lazy-init="true | false | default"(7)
          autowire="no | byName | byType | constructor | autodetect | default"(8)
          dependency-check = "none | objects | simple | all | default"(9)
          depends-on="dependsOnBean"(10)
          init-method="method"(11)
          destroy-method="method"(12)
          factory-method="method"(13)
          factory-bean="bean">(14)
          </bean>

          (7)、lazy-init(默認為“default”):用來定義這個Bean是否實現(xiàn)懶初始化。如果為“true”,它將在BeanFactory啟動時初始化所有的Singleton Bean。反之,如果為“false”,它只在Bean請求時才開始創(chuàng)建Singleton Bean。

          是不是寫反了?

          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(1)

          隨筆分類(27)

          隨筆檔案(22)

          Friends

          搜索

          •  

          積分與排名

          • 積分 - 62258
          • 排名 - 845

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 日喀则市| 山东| 塘沽区| 河北区| 敦煌市| 奉新县| 集安市| 阜阳市| 衡山县| 江川县| 绥宁县| 东山县| 抚顺县| 天气| 广元市| 武汉市| 伊通| 察隅县| 开化县| 南通市| 沙田区| 博爱县| 繁昌县| 峨眉山市| 土默特左旗| 托里县| 吉安市| 冀州市| 常德市| 白银市| 通州市| 普陀区| 舞阳县| 新龙县| 沙坪坝区| 玉林市| 临朐县| 大石桥市| 巴林左旗| 澳门| 龙陵县|