Skip to content

Commit

Permalink
Merge pull request SpringCloud#33 from jang675953/patch-1
Browse files Browse the repository at this point in the history
Update TestController.java
  • Loading branch information
SoftwareKing authored Jun 1, 2019
2 parents a8441e2 + f095747 commit f729a0d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
public class TestController {

@RequestMapping(value = "/getUser",method = RequestMethod.GET)
public String getUser(@RequestParam("username") String username){
return "This is real user";
public String getUser(@RequestParam("username") String username) throws Exception{
if(username.equals("spring")) {
return "This is real user";
}else {
throw new Exception();
}
}
}

0 comments on commit f729a0d

Please sign in to comment.