|
|
@ -1,5 +1,4 @@
|
|
|
|
package com.weaver.seconddev.demo.controller;
|
|
|
|
package com.weaver.seconddev.jcl.organization.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.weaver.common.authority.annotation.WeaPermission;
|
|
|
|
import com.weaver.common.authority.annotation.WeaPermission;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@ -7,14 +6,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/api/secondev/liuliang")
|
|
|
|
@RequestMapping("/api/secondev/demo")
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
@WeaPermission(publicPermission = true)
|
|
|
|
public class HellowWorld {
|
|
|
|
public class HelloController {
|
|
|
|
@GetMapping("/hello")
|
|
|
|
@GetMapping("/hello")
|
|
|
|
public String hello(@RequestParam("msg") String msg) {
|
|
|
|
public String hello(@RequestParam("msg") String msg) {
|
|
|
|
return "Hello, " + msg;
|
|
|
|
return "Hello, " + msg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|