package org.jeasy.jobs.admin.web;

import org.springframework.web.bind.annotation.ModelAttribute;

public class AbstractController {

    @ModelAttribute("version")
    public String version() {
        // TODO get current version
        return "0.3-SNAPSHOT";
    }
}

package org.jeasy.jobs.admin.web;

import org.springframework.web.bind.annotation.ModelAttribute;

public abstract class AbstractController {

    @ModelAttribute("version")
    public String version() {
        // TODO get current version
        return "0.3-SNAPSHOT";
    }

    @ModelAttribute
    public abstract String title();
}

add method to get page title as model attribute