Revision d6a88817
Added by Andreas Kohlbecker 5 months ago
src/main/java/eu/etaxonomy/cdm/service/HelloWorldController.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2019 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.cdm.service; |
|
10 |
|
|
11 |
import org.springframework.stereotype.Controller; |
|
12 |
import org.springframework.ui.Model; |
|
13 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
14 |
|
|
15 |
/** |
|
16 |
* @author a.kohlbecker |
|
17 |
* @since Mar 18, 2019 |
|
18 |
* |
|
19 |
*/ |
|
20 |
@Controller |
|
21 |
public class HelloWorldController { |
|
22 |
|
|
23 |
public HelloWorldController(){ |
|
24 |
System.err.println(); |
|
25 |
} |
|
26 |
|
|
27 |
@RequestMapping("/helloWorld") |
|
28 |
public String helloWorld(Model model) { |
|
29 |
model.addAttribute("message", "Hello World!"); |
|
30 |
return "helloWorld"; |
|
31 |
} |
|
32 |
} |
Also available in: Unified diff
cleaning up obsolete class