Tiny Java Web Framework.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
pom.xml

README.md

Geisha

Tiny Java MVC Framework.

> more detail

Requirements

  • Java8+

Dependency

Apache Maven

<dependency>
    <groupId>com.nosuchfield</groupId>
    <artifactId>geisha</artifactId>
    <version>1.0.0-RELEASE</version>
</dependency>

Apache Buildr

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

Apache Ivy

<dependency org="com.nosuchfield" name="geisha" rev="1.0.0-RELEASE" />

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

@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);
    }

}
public class Application {

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

}

Run Application and visit http://127.0.0.1:5200/person/info?name=张三&age=18

Result:

hello 张三, your age is 18

License GPL

Project License can be found here.