This commit is contained in:
Jottyfan
2023-09-09 23:15:47 +02:00
parent bd081ff48a
commit e991c26c13
27 changed files with 909 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package de.jottyfan.bico.modules.index;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import de.jottyfan.bico.modules.CommonController;
/**
*
* @author jotty
*
*/
@Controller
public class IndexController extends CommonController {
@GetMapping("/")
public String getIndex() {
return "redirect:/sheet";
}
}

View File

@@ -0,0 +1,25 @@
package de.jottyfan.bico.modules.index.model;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.info.BuildProperties;
import org.springframework.stereotype.Component;
/**
*
* @author jotty
*
*/
@Component
public class ManifestBean {
@Autowired(required = false)
private BuildProperties buildProperties;
/**
* @return the version of this project
*/
public String getVersion() {
return buildProperties != null ? buildProperties.getVersion()
: this.getClass().getPackage().getImplementationVersion();
}
}