SpringMVC.xml
neilChenXie opened this issue · comments
Chen Xie commented
imported by web.xml
Chen Xie commented
BEAN
bean of controller is imported and used
Manual
<bean name="/hello" class="cn.javass.chapter2.web.controller.HelloWorldController"/>
Scan
<context:annotation-config />
<!-- 自动扫描(自动注入) -->
<context:component-scan base-package="com.chen.st.controller" />