Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mycoin/noah
Yet another spring-mvc demo project with better structure!
https://github.com/mycoin/noah
deployable maven spring-mvc velocity
Last synced: about 1 month ago
JSON representation
Yet another spring-mvc demo project with better structure!
- Host: GitHub
- URL: https://github.com/mycoin/noah
- Owner: mycoin
- Created: 2015-04-22T02:43:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T17:17:59.000Z (over 3 years ago)
- Last Synced: 2023-03-26T13:24:59.641Z (almost 2 years ago)
- Topics: deployable, maven, spring-mvc, velocity
- Language: Java
- Homepage:
- Size: 2.99 MB
- Stars: 5
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/mycoin/noah.svg?branch=master)](https://travis-ci.org/mycoin/noah)
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`### Get start
---
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:
```shell
./mvnw -U clean install &&
./mvnw -U spring-boot:run --projects=noah-start --activate-profiles=dev
```then open http://127.0.0.1:8080/
### Overview
---
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 interfaces
- `noah-dao` the data access layer, using [mybatis ](https://github.com/mybatis/)
- `noah-service` service implements
- `noah-start` the front-end controllers, config files and velocity templates##### packaging
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 of `context:property-placeholder` .properties file. [see more](https://github.com/mycoin/noah/blob/master/pom.xml)---
FreeBSD License