1、 进入workspace
2、 mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories= http://static.appfuse.org/repository
-DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject1
3、修改用户名密码
<
jdbc
.url
>
<![CDATA[
jdbc:mysql://localhost/myproject1?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8
]]>
</
jdbc.url
>
<
jdbc
.username
>
root
</
jdbc.username
>
<
jdbc
.password
></
jdbc.password
>
修改为:
<
jdbc
.url
>
<![CDATA[
jdbc:mysql://localhost:3308/myproject1?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8
]]>
</
jdbc.url
>
<
jdbc
.username
>
root
</
jdbc.username
>
<
jdbc
.password
>
123456
</
jdbc.password
>
注意这里我修改了端口号,我的mysql用的是3308
4、启动mysql,cd近你的项目目录,cd web,mvn jetty:run-war,在你的浏览器中输入http://localhost:8080,就可以访问了。
这里用的是modular,struts2,
注意:用basic存在问题,有乱码,选择gbk编码显示正常,现在还不知道为什么, 希望高手指点,
2、 mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories= http://static.appfuse.org/repository

3、修改用户名密码






4、启动mysql,cd近你的项目目录,cd web,mvn jetty:run-war,在你的浏览器中输入http://localhost:8080,就可以访问了。
这里用的是modular,struts2,
注意:用basic存在问题,有乱码,选择gbk编码显示正常,现在还不知道为什么, 希望高手指点,