esolve
V2EX  ›  问与答

HttpServletRequestAware 和 HttpServletRequest 注解

  •  
  •   esolve · Apr 25, 2017 · 1454 views
    This topic created in 3377 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   ·   968 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:39 · PVG 03:39 · LAX 12:39 · JFK 15:39
    ♥ Do have faith in what you're doing.