V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
esolve
V2EX  ›  问与答

HttpServletRequestAware 和 HttpServletRequest 注解

  •  
  •   esolve · Apr 25, 2017 · 1311 views
    This topic created in 3293 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
        1
    esolve  
    OP
       Apr 26, 2017
    顶一下,求问
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2688 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:20 · PVG 21:20 · LAX 06:20 · JFK 09:20
    ♥ Do have faith in what you're doing.