From b48461128f1a24e8c5a036f7e782f196c3544717 Mon Sep 17 00:00:00 2001 From: Smith Date: Sat, 24 Feb 2018 13:35:11 +0800 Subject: [PATCH] remove --- .../web/controller/TestController.java | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 eagle-oj-web/src/main/java/com/eagleoj/web/controller/TestController.java diff --git a/eagle-oj-web/src/main/java/com/eagleoj/web/controller/TestController.java b/eagle-oj-web/src/main/java/com/eagleoj/web/controller/TestController.java deleted file mode 100644 index 40acb75..0000000 --- a/eagle-oj-web/src/main/java/com/eagleoj/web/controller/TestController.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.eagleoj.web.controller; - -import com.eagleoj.web.controller.exception.ForbiddenException; -import com.github.pagehelper.Page; -import com.github.pagehelper.PageHelper; - -import com.eagleoj.web.entity.ResponseEntity; -import org.apache.shiro.authz.annotation.RequiresAuthentication; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author Smith - **/ -@RestController -public class TestController { - - @Value("${spring.datasource.url}") - private String url; - - @Value("${spring.datasource.username}") - private String username; - - @Value("${spring.datasource.password}") - private String password; - - @GetMapping("/test") - public ResponseEntity test1() { - Map map = new HashMap<>(); - map.put("url", url); - map.put("username", username); - map.put("password", password); - return new ResponseEntity(map); - } - - - -}