kentyeh
   
發文: 643
積分: 6
|
於 2012-10-24 14:37
     
我用Maven寫了一個模版程式, 可建立包含Spring Web, Spring Security, Spring Mobile, JPA(Hibernate),多國語言的基本架構程式, 讓您在用Spring 開發時不用每次都從無到有開始寫。執行命令如下:
1 2 3 4
| mvn archetype:generate -DarchetypeRepository=http:
-DarchetypeGroupId=com.google.code \
-DarchetypeArtifactId=SpringWebStart \
-DarchetypeVersion=0.1
|
然後回達一些問題
1 2 3 4 5 6
| Define value for property 'groupId': : <輸入群組識別,如:com.yourcompany>
Define value for property 'artifactId': : <輸入專案名稱,如:TestSpringWeb>
Define value for property 'version': 1.0-SNAPSHOT: : <輸入專案的版本,預設為 1.0-SNAPSHOT>
Define value for property 'package': com.spring: : <輸入套件名稱,如:com.spring>
Confirm properties configuration:
Y: :
| 以建立專案, 或者也可以使用IDE環境來建立程式架構, 其它說明請見此
  |