Advertisement

Parameter 1 of constructor in com.ykww.filter.GlobalErrorWebExceptionHandler required a bean of type

阅读量:

前言

今天在搭建框架,封装拦截404和500时报错


错误信息如下:

复制代码
    ***************************
    APPLICATION FAILED TO START
    ***************************
    
    Description:
    
    Parameter 1 of constructor in com.ykww.filter.GlobalErrorWebExceptionHandler required a bean of type 'org.springframework.boot.autoconfigure.web.WebProperties$Resources' that could not be found.
    
    
    Action:
    
    Consider defining a bean of type 'org.springframework.boot.autoconfigure.web.WebProperties$Resources' in your configuration.
    
    
      
      
      
      
      
      
      
      
      
      
      
      
    
    代码解读

解决办法

请查看我的其他博客
谢谢

标题为:springboot实现404和500的状态进行拦截

全部评论 (0)

还没有任何评论哟~