https://github.com/RitterHou/Geisha
Tiny Java Web Framework.
https://github.com/RitterHou/Geisha
mvc-framework
Last synced: about 1 year ago
JSON representation
Tiny Java Web Framework.
- Host: GitHub
- URL: https://github.com/RitterHou/Geisha
- Owner: RitterHou
- License: gpl-3.0
- Created: 2017-10-19T15:24:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-01T09:31:16.000Z (over 8 years ago)
- Last Synced: 2024-11-12T21:39:28.981Z (over 1 year ago)
- Topics: mvc-framework
- Language: Java
- Homepage:
- Size: 59.6 KB
- Stars: 140
- Watchers: 3
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-java - Geisha
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).