|
|
@@ -1,28 +0,0 @@
|
|
|
-package com.zheng.upms.admin.controller;
|
|
|
-
|
|
|
-import com.zheng.common.base.BaseController;
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
-
|
|
|
-
|
|
|
-@Controller
|
|
|
-@RequestMapping("/hello")
|
|
|
-public class HelloController extends BaseController {
|
|
|
-
|
|
|
- @RequestMapping("/index")
|
|
|
- @ResponseBody
|
|
|
- public String index() {
|
|
|
- System.out.println(1/0);
|
|
|
- return "/hello/world";
|
|
|
- }
|
|
|
-
|
|
|
- @RequestMapping("/index2")
|
|
|
- @ResponseBody
|
|
|
- public String index2() {
|
|
|
- String a = null;
|
|
|
- System.out.println(a.toString());
|
|
|
- return "/hello/world";
|
|
|
- }
|
|
|
-
|
|
|
-}
|