V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
esolve
V2EX  ›  问与答

HttpServletRequestAware 和 HttpServletRequest 注解

  •  
  •   esolve · 2017-04-25 15:13:11 +08:00 · 1004 次点击
    这是一个创建于 2579 天前的主题,其中的信息可能已经有所发展或是发生改变。

    项目里看到

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

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

    1 条回复    2017-04-26 11:11:36 +08:00
    esolve
        1
    esolve  
    OP
       2017-04-26 11:11:36 +08:00
    顶一下,求问
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1827 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 00:19 · PVG 08:19 · LAX 17:19 · JFK 20:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.