zoukankan      html  css  js  c++  java
  • mybatis配置mapperLocations多个路径

    <property name="mapperLocations">
          <array>
              <value>classpath*:/mybatis-config.xml</value>
              <value>classpath*:/com/**/sqlmap-*.xml</value>
          </array>
    </property>
    <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
          <property name="mapperLocations">
              <array>
                  <value>classpath:mybatis/mapper/*.xml</value>
                  <value>classpath:mybatis/mapper/database/*.xml</value>
              </array>
          </property>
          <property name="dataSource" ref="dataSource"/>
          <property name="configLocation" value="classpath:mybatis/config/mybatis-config.xml"/>
    </bean>
    <property name="mapperLocations" >
         <list>
              <value>classpath*:/sqlmap/*.xml</value>
              <value>classpath*:/test/*.xml</value>
         </list>
    </property>
  • 相关阅读:
    shell脚本-awk
    shell脚本-sed命令
    shell脚本-grep和正则表达式
    wuti
    dmesg、stat命令
    uname、hostname命令
    tee、vi/vim命令
    tr、od命令
    vimdiff、rev命令
    dos2unix、diff命令
  • 原文地址:https://www.cnblogs.com/henuyuxiang/p/6592813.html
Copyright © 2011-2022 走看看