关于spring.xml里面我所认知的 和视频里面的矛盾 很纠结 希望老师解惑

来源:4-1 Shiro集成Spring

慕的地1248485

2018-06-05 11:14

老师,web.xml 里面只扫描了 springmvc.xml?  不用扫描spring.xml的? spring <bean> property注入 不是要被注入类里面要有get,set方法吗? 

写回答 关注

3回答

  • WinterTrees
    2018-07-06 01:00:16

    构造方法注入

  • 慕姐3200295
    2018-06-09 17:04:40

    可以不需要get、set方法的。而且web.xml有扫描spring.xml文件啊,你再看看。

  • 混合动力火锅
    2018-06-07 23:05:28

    哪儿矛盾?完全没问题啊


Shiro安全框架入门

从零入门Shiro安全框架

48050 学习 · 332 问题

查看课程

相似问题