add code
Showing
.gitlab-ci.yml
0 → 100644
README.md
0 → 100644
build.gradle
0 → 100644
client/build.gradle
0 → 100644
common/build.gradle
0 → 100644
core/build.gradle
0 → 100644
dal/build.gradle
0 → 100644
settings.gradle
0 → 100644
web/build.gradle
0 → 100644
package cn.com.duia.tuia.test.manager.clientController; | ||
import cn.com.duia.tuia.test.manager.common.entity.AppEntity; | ||
|
||
import cn.com.duia.tuia.test.manager.core.rpcservice.RpcService; | ||
import cn.com.duia.tuia.test.manager.core.service.AppService; | ||
|
||
import io.swagger.annotations.ApiOperation; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import javax.annotation.Resource; | ||
import java.util.List; | ||
|
||
@RestController | ||
public class ClientController { | ||
@Resource | ||
private RpcService rpcService; | ||
@ApiOperation(value = "第一个接口for rpc", httpMethod = "GET") | ||
@RequestMapping(value = "/test/inforpc", method = RequestMethod.GET) | ||
public String info(@RequestParam(value = "msg") String msg) { | ||
return "welcome to demo-springbootrpc: " + msg; | ||
} | ||
@RequestMapping(value = "/test/index") | ||
public String index(@RequestParam(value = "msg") String msg) { | ||
return rpcService.query(msg); | ||
} | ||
} |
-
SonarQube analysis reported 4 issues
-
🔽 4 minor
Watch the comments in this conversation to review them.
-