Skip to content

RitterHou/Geisha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages