1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||
|
package cn.chjyj.szwh.controller.api; |
||||
|
|
||||
|
import cn.chjyj.szwh.annotation.PassToken; |
||||
|
import org.springframework.boot.SpringBootVersion; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
/** |
||||
|
* test controller |
||||
|
*/ |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("/api/v1/") |
||||
|
public class TestController { |
||||
|
/** |
||||
|
* test |
||||
|
* @return |
||||
|
*/ |
||||
|
@PassToken |
||||
|
@RequestMapping("/version") |
||||
|
public String version(){ |
||||
|
return SpringBootVersion.getVersion(); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue