This is blank project template for web application is provided in collaboration with TERASOLUNA Server Framework for Java (5.x) (Spring MVC + Spring + MyBatis3/JPA).
Use this as the starting point of all kinds of development activities.
This blank project can be be beneficial in following ways.
- The most standard and ideal baseline configuration and structure to all the development activities.
- Quickly jump to focus on business application.
There are two ways to get started. Download or use maven archetype to let it download and setup the project for you.
Quickly create your blank project using maven archetype of TERASOLUNA Server Framework for Java (5.x).
Execute mvn archetype:generate <options>
.
To create a plain blank project
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-jsp-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-jsp-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a plain blank project(XMLConfig,JSP)
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-jsp-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-jsp-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a plain blank project(JavaConfig,Thymeleaf)
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-thymeleaf-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-thymeleaf-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a plain blank project(XMLConfig,Thymeleaf)
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-thymeleaf-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-thymeleaf-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(JavaConfig,JSP) with MyBatis3
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-jsp-mybatis3-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-jsp-mybatis3-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(XMLConfig,JSP) with MyBatis3
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-jsp-mybatis3-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-jsp-mybatis3-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(JavaConfig,Thymeleaf) with MyBatis3
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-thymeleaf-mybatis3-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-thymeleaf-mybatis3-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(XMLConfig,Thymeleaf) with MyBatis3
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-thymeleaf-mybatis3-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-thymeleaf-mybatis3-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(JavaConfig,JSP) with JPA (Spring Data JPA)
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-jsp-jpa-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-jsp-jpa-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(XMLConfig,JSP) with JPA (Spring Data JPA)
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-jsp-jpa-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-jsp-jpa-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(JavaConfig,Thymeleaf) with JPA (Spring Data JPA)
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-thymeleaf-jpa-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-thymeleaf-jpa-archetype\
-DarchetypeVersion=5.9.0.RELEASE
To create a blank project(XMLConfig,Thymeleaf) with JPA (Spring Data JPA)
mvn archetype:generate^
-DarchetypeGroupId=org.terasoluna.gfw.blank^
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-thymeleaf-jpa-archetype^
-DarchetypeVersion=5.9.0.RELEASE
mvn archetype:generate\
-DarchetypeGroupId=org.terasoluna.gfw.blank\
-DarchetypeArtifactId=terasoluna-gfw-web-blank-xmlconfig-thymeleaf-jpa-archetype\
-DarchetypeVersion=5.9.0.RELEASE
If you don't want to use maven archetype, download manually from the following link.
https://github.com/terasolunaorg/terasoluna-gfw-web-blank/releases
There are two type of downloads available.
- Project that includes settings related to WTP of Eclipse and dependency libraries (jar files).
- Maven project which does not include jar files.
When downloaded manually, following points needs to be taken care of separately.
- groupId is xxxxxx.yyyyyy.zzzzzz.
- artifactId is projectName. Accordingly, all the configuration filenames have projectName as prefix.
The above two points need to be modified manually as per the requirements.
In order to run the blank project, execute the below command. (This command starts the embedded tomcat server. Hence check whether any other instance of Tomcat is not running on your local machine)
$ cd <your artifaceId>
$ mvn package cargo:run
Access the following to confirm.
http://localhost:8080/<your artifactId\>