This project will allow you to start off on the good foot with spring boot. In this showcase you'll see the following features in action:
- Pure maven dependencies
- Embedded Tomcat (Spring-boot)
- Using
redis
as Session Repository - Message Converters
- Message Source
i18n support
- Rendering Layout Views
- Multi environment packaging
profiles
Clone the repository and modify the db config in application.properties
then import the mysql script /support/db.sql
- startup mysql
- install redis and start it default port:
6379
run:
./mvnw -U clean install &&
./mvnw -U spring-boot:run --projects=noah-start --activate-profiles=dev
then open http://127.0.0.1:8080/
This is an application to demo the implementation of a REST API.
BTW: XML responses is not supported.
A better project structure is required:
noah-shared
shared apis, models and service interfacesnoah-dao
the data access layer, using mybatisnoah-service
service implementsnoah-start
the front-end controllers, config files and velocity templates
Use maven property named environment, conf
to support dev
, test
and production
environments, e.g:
mvn install -P production
- default actived environment is
dev
- use
environment
as global runtime variable conf
the location ofcontext:property-placeholder
.properties file. see more
FreeBSD License