[Trunk | Admin Tools Library]: AdminToolsLibraryCheckDeployController.java: [NEW] Controller added with @RequestMapping("/admin-tools-library") and

"hello()" method (@RequestMapping(value = "", method = RequestMethod.GET)) which just prints and returns a greeting message.
This commit is contained in:
Konstantina Galouni 2021-03-24 10:26:35 +00:00
parent 2a3f6c6a58
commit 93efd1f7d3
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package eu.dnetlib.uoaadmintoolslibrary.controllers;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
@CrossOrigin(origins = "*")
@RequestMapping("/admin-tools-library")
public class AdminToolsLibraryCheckDeployController {
private final Logger log = Logger.getLogger(this.getClass());
@RequestMapping(value = "", method = RequestMethod.GET)
public String hello() {
log.debug("Hello from uoa-admin-tools-library!");
return "Hello from uoa-admin-tools-library!";
}
}