esolve
V2EX  ›  问与答

HttpServletRequestAware 和 HttpServletRequest 注解

  •  
  •   esolve · Apr 25, 2017 · 1669 views
    This topic created in 3485 days ago, the information mentioned may be changed or developed.

    项目里看到

    public class InitialController implements HttpServletRequestAware {
        @Autowired
        protected HttpServletRequest httpServletRequest;
        ....
    
    }
    

    因为是 springboot 没有配置文件 如果是 spring xml 配置文件的话,会有在 beans.xml 里定义 bean 或者启动 component-scan 但是这里没有,如何理解?

    1 replies  •  2017-04-26 11:11:36 +08:00
    esolve
    esolve
    OP
    Apr 26, 2017
    1
    顶一下,求问
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   973 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:01 · PVG 06:01 · LAX 14:01 · JFK 17:01
    ♥ Do have faith in what you're doing.