<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    javaGrowing

      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      92 隨筆 :: 33 文章 :: 49 評論 :: 0 Trackbacks

    2007年12月19日 #

    單擊“開始→運(yùn)行”,在“打開”框中鍵入“MOUNTVOL ? /E”,然后單擊“確定”按鈕,重新啟動電腦。
    posted @ 2008-11-01 15:19 javaGrowing 閱讀(524) | 評論 (0)編輯 收藏

    Archetype Command
    JSF Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Basic mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    JSF Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Modular mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
    Core
    (backend only)
    mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject

    You should be able to run AppFuse immediately if you have a MySQL 5.x database installed and it's accessible to root using no password. If you'd prefer to use an embedded database, we've recently added Database Profiles for H2, HSQLDB, etc.

    MySQL Security
    Running MySQL using root with no password is not the most secure thing to do. Once your database is created, you can change the root password using the command below:
    mysql --user=root --pass='' mysql -e "update user set password=password('newpw') where user='root'; flush privileges;"

    AppFuse uses the username "root" and a blank password by default. To change these values, modify the <jdbc.username> and <jdbc.password> properties in your project's pom.xml (at the bottom).

    Run your application

    Running AppFuse is easy now. Once the archetype project is created, Maven will create and populate your database using the hibernate3 and dbunit plugins, respectively. All you have to do is use Maven to run the Jetty container and view your application.

    1. Check your new project into source control, unless you have a good reason not to. Google Code has free Subversion hosting, as do many others.
    2. From the command line, cd into your new project's directory and run mvn to download JARs, Tomcat and run the integration tests in your project. Now is a good time to take a coffee break or grab a beer - downloading everything and running the tests can take 5-10 minutes.
    3. To view your application run mvn jetty:run-war from your project's directory (for a modular project, you'll need to run mvn jetty:run-war from your project's web directory). Maven will start Jetty and you should be able to view your application in your browser at http://localhost:8080.
      The default username/password for an admin user is admin/admin. For a regular user, use user/user.
    4. To override files from AppFuse, run mvn war:inplace. This will extract the dependent WARs into src/main/webapp, where you can change files to your heart's content. When you have the war expanded in your source tree, you can run mvn jetty:run. This will allow you to change files on-the-fly and Jetty will reload them as needed. The only problem with this approach is you end up with an "exploded AppFuse" in your project, which won't bode well for upgrading. We recommend you check your project into source control before running mvn war:inplace. That way, it'll be easier for you to decide what needs to be checked in (over written) and what can be deleted.

    If you receive OutOfMemory errors when using mvn jetty:run, see this mailing list thread.

    You can change AppFuse from its "embedded mode" to full-source mode by running mvn appfuse:full-source from your project's root directory.

    Bug with Ant 1.7.0
    Local repositories and projects on Windows platforms are held in directories whose paths contain no spaces. To fix this issue, modify your $M2_HOME/conf/settings.xml and change your localRepository to something like the following:
    <localRepository>c:\docume~1\username\.m2\repository</localRepository> 
    
    Development Environment
    See development environment for detailed instructions on how to setup your computer to develop AppFuse-based applications.
    Changing database settings
    To change your MySQL database settings, simply change the <jdbc.*> properties at the bottom of your pom.xml. See Database Profiles to use a database other than MySQL


    set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
    posted @ 2008-09-03 18:07 javaGrowing 閱讀(486) | 評論 (0)編輯 收藏

    今天我在調(diào)程序時(shí),遇到了見郁悶的事,我用ajax從前臺顯示頁面?zhèn)髯址兞拷o處理頁面,出現(xiàn)了件怪事,我想傳的內(nèi)容是abc+,但接收以后用System.out.println()輸出是abc空格。反復(fù)測試好幾遍,都是這個(gè)結(jié)果,真是令人郁悶。在網(wǎng)上搜了搜,找到了原因。
    原因:?? url中有些字符被轉(zhuǎn)義,比如空格被編碼成加號,于是傳的參數(shù)明明是加號,獲取的值卻成了空格。如何解決呢?如果是通過url傳遞參數(shù),應(yīng)該對其進(jìn)行必要的編碼。
    解決辦法:
    ???????? 在javascript中加入?? function URLencode(sStr)
    {
    ??? return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\//g,'%2F');
    }
    對字符串進(jìn)行處理.如:var str=URLencode("abc+")
    posted @ 2007-12-19 09:02 javaGrowing 閱讀(11334) | 評論 (5)編輯 收藏

    主站蜘蛛池模板: 啦啦啦www免费视频| 国产成年无码久久久免费| 美女视频黄的全免费视频| 亚洲国产精品国自产拍AV| 成人网站免费看黄A站视频| 亚洲欧洲日产国码无码久久99| 一级毛片视频免费| 在线精品亚洲一区二区三区| gogo免费在线观看| 在线观着免费观看国产黄| 亚洲中文无码亚洲人成影院| 国内成人精品亚洲日本语音| 日本免费一区尤物| 污污视频免费观看网站| 久草视频免费在线观看| 在线亚洲精品福利网址导航| 9久热精品免费观看视频| 亚洲精品视频在线| 欧美三级在线电影免费| 精品久久亚洲一级α| 亚洲综合久久夜AV | 香港a毛片免费观看 | 中文字幕日韩亚洲| 久久免费精品视频| 久久久久亚洲精品中文字幕| 久久狠狠躁免费观看2020| 亚洲伊人久久大香线蕉影院| 国产无遮挡吃胸膜奶免费看视频 | xxxxxx日本处大片免费看| 亚洲国产另类久久久精品小说| 日本免费一区二区三区| 亚洲一线产品二线产品| 亚洲国产综合精品中文字幕| 美女视频黄的免费视频网页 | 亚洲精品国产高清不卡在线| 久久99免费视频| 亚洲国产精品嫩草影院| 国产亚洲综合一区柠檬导航| 日韩亚洲国产高清免费视频| 黄页网站在线视频免费| 亚洲国产精品一区二区久久|