All Downloads are FREE. Search and download functionalities are using the official Maven repository.

news.2017-01-02.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version

This release is all about bootstrapping a Spincast application. This process has been greatly improved and the creation of the Guice context associated with an application is now easier. A new component, the Bootstrapper, is at the core of this process.

Here's a fully working "Hello World!" Spincast application :

public class App {

    public static void main(String[] args) {
        Spincast.init(args);
    }

    @Inject
    protected void init(DefaultRouter router, Server server) {
        router.GET("/").handle(context -> context.response().sendHtml("<h1>Hello World!</h1>"));
        server.start();
    }
}

Speaking of "Hello world!" applications, you can now find three of them in the "Demos / Tutorials" section! :

Finally, we introduced a new section in the documentation dedicated to plugins : what they really are, how to install them, etc.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy