接口的使用
org.springframework.context.MessageSourceAware
使用MessageSourceAware的程序包 程序包 说明 org.springframework.web.servlet.mvc.annotation Support package for annotation-based Servlet MVC controllers.org.springframework.web.servlet.mvc.annotation中MessageSourceAware的使用
实现MessageSourceAware的org.springframework.web.servlet.mvc.annotation中的类 修饰符和类型 类 说明 class
ResponseStatusExceptionResolver
AHandlerExceptionResolver
that uses the@ResponseStatus
annotation to map exceptions to HTTP status codes.