Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
Nov 9, 2017
Oct 19, 2017
Nov 8, 2017
Mar 1, 2018

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.

About

Tiny Java Web Framework.

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages