一、全局配置设置

    (1)全局配置Id自动生成

 1 <!--定义mybatisplus全局配置-->
 2     <bean id="globalConfig" class="com.baomidou.mybatisplus.core.config.GlobalConfig">
 3 
 4         <property name="dbConfig">
 5             <bean class="com.baomidou.mybatisplus.core.config.GlobalConfig.DbConfig">
 6                 <!-- 全局的主键策略 -->
 7                 <property name="idType" value="AUTO"/>
 8             </bean>
 9         </property>
10 
11     </bean>
View Code

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2022-01-10
  • 2021-11-27
  • 2022-12-23
  • 2021-10-10
  • 2021-09-30
  • 2021-07-29
猜你喜欢
  • 2021-09-16
  • 2022-01-26
  • 2022-12-23
  • 2022-02-22
  • 2021-11-06
  • 2022-01-24
  • 2022-12-23
相关资源
相似解决方案