Skip to content

@AdvancedController是一个增强型的RestController注解,可以使用接口来定义Controller类,自动匹配Service类并调用Service中的方法。

License

Notifications You must be signed in to change notification settings

kernol-info/advanced-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

advanced-controller

@AdvancedController是一个增强型的RestController注解,可以使用接口来定义Controller类,自动匹配Service类并调用Service中的方法。 简单示例:

TestController.java

@RequestMapping("/test")
@AdvancedController(TestService.class)
public interface TestCotroller {

	@RequestMapping("hello")
	String callHello();
}

TestService.java

@Service
public class TestService {

	public String callHello() {
		return "hello world!";
	}
}

About

@AdvancedController是一个增强型的RestController注解,可以使用接口来定义Controller类,自动匹配Service类并调用Service中的方法。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages