Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 JHipster 项目中工作。我想在 HttpServlet 中注入我们的服务。但是我注入或使用了返回空指针异常,请帮助或提供者方式在HttpServlet中注入我们的spring服务。
谢谢
您需要使用 Spring DelegatingFilterProxy 定义您的 servlet。