Create the ResourceController

Now we're ready to start coding. Create a java class called HelloWorldController in the com.helloworld package.

We need to let milton know this is a controller, so we give the class the @ResourceController and we're going to add a logger, because logging is very important!

package com.helloworld;

import io.milton.annotations.ResourceController;

public class HelloWorldController  {

    private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(HelloWorldController.class);