Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/RitterHou/Geisha

Tiny Java Web Framework.
https://github.com/RitterHou/Geisha

mvc-framework

Last synced: 2 months ago
JSON representation

Tiny Java Web Framework.

Awesome Lists containing this project

README

        

# Geisha

_Tiny Java MVC Framework._

[> more detail](https://www.nosuchfield.com/2017/11/08/Geisha-Tiny-Java-MVC-Framework/)

## Requirements

* Java8+

## Dependency

Apache Maven


com.nosuchfield
geisha
1.0.0-RELEASE


Apache Buildr

'com.nosuchfield:geisha:jar:1.0.0-RELEASE'

Apache Ivy



Groovy Grape

@Grapes(
@Grab(group='com.nosuchfield', module='geisha', version='1.0.0-RELEASE')
)

Gradle/Grails

compile 'com.nosuchfield:geisha:1.0.0-RELEASE'

Scala SBT

libraryDependencies += "com.nosuchfield" % "geisha" % "1.0.0-RELEASE"

Leiningen

[com.nosuchfield/geisha "1.0.0-RELEASE"]

## Example

```java
@Component
@RequestMapping("/person")
public class Hello {

@RequestMapping("/info")
public String hello(@Param("name") String name, @Param("age") String age) {
return "hello " + name + ", your age is " + Integer.valueOf(age);
}

}
```
```java
public class Application {

public static void main(String[] args) {
Geisha.run();
}

}
```
Run Application and visit

Result:

hello 张三, your age is 18

## License GPL

Project License can be found [here](https://github.com/RitterHou/Lilith/blob/master/LICENSE).