javax.naming.NameNotFoundException: Name [XXX] is not bound in this Context

javax.naming.NameNotFoundException: Name [XXX] is not bound in this Context

搞了一天,手贱没注意到,把xxx注入到一个没有配置注解的类当中,但是这个类刚好被filter继承了,导致启动报过滤器filter的异常,而自己也一直以为是filter出问题了,因为当把web.xml中的filter注释之后,程序就能正常启动了。

以后遇到NameNotFoundException的问题,就想到可能是在没有注解的类中使用了注解注入

你可能感兴趣的:(Java开发,web开发,Java后台开发,spring,spring,boot,java)