Skip to content

Blank project for web application using TERASOLUNA Server Framework for Java (5.x)

Notifications You must be signed in to change notification settings

terasolunaorg/terasoluna-gfw-web-blank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

btiwahorisubtiwahorisu
and
btiwahorisu
Apr 6, 2022
3416cde · Apr 6, 2022
Feb 7, 2020
Jan 28, 2021
Jan 24, 2022
Feb 25, 2021
Feb 2, 2016
Apr 6, 2022
Oct 9, 2013
Oct 9, 2013
Mar 7, 2014
Oct 9, 2013
Nov 30, 2017
Nov 30, 2017
Aug 2, 2021
Apr 6, 2022
Jun 29, 2020

Repository files navigation

TERASOLUNA Server Framework for Java (5.x) Blank Project

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.

  1. The most standard and ideal baseline configuration and structure to all the development activities.
  2. Quickly jump to focus on business application.

Getting Started

There are two ways to get started. Download or use maven archetype to let it download and setup the project for you.

Use maven archetype

Quickly create your blank project using maven archetype of TERASOLUNA Server Framework for Java (5.x). Execute mvn archetype:generate <options>.

a blank project without any DB configuration

To create a plain blank project

for CommandPrompt
mvn archetype:generate^
 -DarchetypeGroupId=org.terasoluna.gfw.blank^
 -DarchetypeArtifactId=terasoluna-gfw-web-blank-archetype^
 -DarchetypeVersion=5.7.1.SP1.RELEASE
for Bash
mvn archetype:generate\
 -DarchetypeGroupId=org.terasoluna.gfw.blank\
 -DarchetypeArtifactId=terasoluna-gfw-web-blank-archetype\
 -DarchetypeVersion=5.7.1.SP1.RELEASE

a blank project with MyBatis3

To create a blank project with MyBatis3

for CommandPrompt
mvn archetype:generate^
 -DarchetypeGroupId=org.terasoluna.gfw.blank^
 -DarchetypeArtifactId=terasoluna-gfw-web-blank-mybatis3-archetype^
 -DarchetypeVersion=5.7.1.SP1.RELEASE
for Bash
mvn archetype:generate\
 -DarchetypeGroupId=org.terasoluna.gfw.blank\
 -DarchetypeArtifactId=terasoluna-gfw-web-blank-mybatis3-archetype\
 -DarchetypeVersion=5.7.1.SP1.RELEASE

a blank project with JPA (Spring Data JPA)

To create a blank project with JPA (Spring Data JPA)

for CommandPrompt
mvn archetype:generate^
 -DarchetypeGroupId=org.terasoluna.gfw.blank^
 -DarchetypeArtifactId=terasoluna-gfw-web-blank-jpa-archetype^
 -DarchetypeVersion=5.7.1.SP1.RELEASE
for Bash
mvn archetype:generate\
 -DarchetypeGroupId=org.terasoluna.gfw.blank\
 -DarchetypeArtifactId=terasoluna-gfw-web-blank-jpa-archetype\
 -DarchetypeVersion=5.7.1.SP1.RELEASE

Download

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.

  1. Project that includes settings related to WTP of Eclipse and dependency libraries (jar files).
  2. Maven project which does not include jar files.

When downloaded manually, following points needs to be taken care of separately.

  1. groupId is xxxxxx.yyyyyy.zzzzzz.
  2. 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.

Run

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\>