首页 新闻 会员 周边 捐助

java ssm平台搭建

0
悬赏园豆:20 [已关闭问题] 关闭于 2015-12-14 08:28

十二月 09, 2015 12:31:34 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'back'

    <!--spring 扫包   @Service .....-->
    <context:component-scan base-package="cn.itcast">
        <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
    </context:component-scan>
    
    <context:annotation-config/>


<!-- springmvc 配置 后台--> <servlet> <servlet-name>back</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:springmvc-back.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>back</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>

 

    <!--mybatis  sessionFactory配置-->
    <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="mapperLocations" value="classpath:cn/itcast/core/dao/*.xml"/>
        <property name="typeAliasesPackage" value="cn.itcast.core.bean"/>
    </bean>
    
    <!-- 扫包  -->
    <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
        <property name="basePackage"  value="cn.itcast.core.dao"/>
    </bean>
    
ssm
刺客者的主页 刺客者 | 菜鸟二级 | 园豆:202
提问于:2015-12-09 12:34
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册