当前位置: 首页 > news >正文

深圳福田做网站公司常州网站推广公司

深圳福田做网站公司,常州网站推广公司,建设网站 备案,无锡有哪些互联网公司在springboot和myabtisplus版本没有冲突的情况下,MybatisPlusAutoConfiguration配置类没有生效,查看该类发现存在生效条件,即: 1.必须存在数据源的Bean对象 2.必须存在SqlSessionFactory和SqlSessionFactoryBean类(这…

在springboot和myabtisplus版本没有冲突的情况下,MybatisPlusAutoConfiguration配置类没有生效,查看该类发现存在生效条件,即:

1.必须存在数据源的Bean对象

2.必须存在SqlSessionFactory和SqlSessionFactoryBean类(这个一般不可能出问题) 

 

 所以一定是数据源没注入,原因是我把数据源自动配置类排除掉了:

修改后的正确代码如下: 

pom.xml

    <properties><java.version>1.8</java.version><mysql-connector.version>8.0.32</mysql-connector.version><lombok.version>1.18.20</lombok.version><dbcp.version>1.3</dbcp.version><druid.version>1.2.11</druid.version><springboot.version>2.3.12.RELEASE</springboot.version><mybatisplus.version>3.4.1</mybatisplus.version><knife4j.version>2.0.8</knife4j.version><maven.compiler.source>8</maven.compiler.source><maven.compiler.target>8</maven.compiler.target></properties>
        <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><exclusions><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-logging</artifactId></exclusion></exclusions></dependency><!--spring-jdbc--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jdbc</artifactId></dependency><!--mybatis-plus--><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><version>${mybatisplus.version}</version></dependency><!--pagehelper--><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId><version>1.3.0</version><exclusions><exclusion><groupId>org.mybatis</groupId><artifactId>mybatis</artifactId></exclusion><exclusion><groupId>org.mybatis</groupId><artifactId>mybatis-spring</artifactId></exclusion><exclusion><groupId>com.github.jsqlparser</groupId><artifactId>jsqlparser</artifactId></exclusion></exclusions></dependency><!-- 代码自动生成 --><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-generator</artifactId><version>${mybatisplus.version}</version><exclusions><exclusion><groupId>com.github.jsqlparser</groupId><artifactId>jsqlparser</artifactId></exclusion></exclusions></dependency><dependency><groupId>com.github.jsqlparser</groupId><artifactId>jsqlparser</artifactId><version>3.1</version></dependency><!--druid连接池--><dependency><groupId>com.alibaba</groupId><artifactId>druid-spring-boot-starter</artifactId><version>${druid.version}</version></dependency><!--log4j--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-log4j2</artifactId></dependency><dependency><scope>provided</scope><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>${lombok.version}</version></dependency><dependency><groupId>commons-dbcp</groupId><artifactId>commons-dbcp</artifactId><version>${dbcp.version}</version></dependency><dependency><scope>provided</scope><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>${mysql-connector.version}</version></dependency><dependency><scope>provided</scope><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>${lombok.version}</version></dependency><dependency><groupId>commons-dbcp</groupId><artifactId>commons-dbcp</artifactId><version>${dbcp.version}</version></dependency><dependency><scope>provided</scope><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>${mysql-connector.version}</version></dependency>

启动类

@SpringBootApplication
@EnableCaching
@ServletComponentScan
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan("com.xxx")
@MapperScan("com.xxx.**.mapper")
public class WindsApplication {public static void main(String[] args) {SpringApplication.run(WindsApplication.class,args);}
}


文章转载自:
http://liturgiology.tbjb.cn
http://sainted.tbjb.cn
http://estron.tbjb.cn
http://pekin.tbjb.cn
http://loo.tbjb.cn
http://rectus.tbjb.cn
http://cointreau.tbjb.cn
http://refractory.tbjb.cn
http://fervidor.tbjb.cn
http://revisal.tbjb.cn
http://assail.tbjb.cn
http://alba.tbjb.cn
http://unsmiling.tbjb.cn
http://rocklet.tbjb.cn
http://planigraph.tbjb.cn
http://galleon.tbjb.cn
http://inefficacy.tbjb.cn
http://motivity.tbjb.cn
http://maunder.tbjb.cn
http://dilative.tbjb.cn
http://nocuousness.tbjb.cn
http://inappositely.tbjb.cn
http://chewy.tbjb.cn
http://warrantor.tbjb.cn
http://adverbialize.tbjb.cn
http://hydroxid.tbjb.cn
http://sunbath.tbjb.cn
http://seta.tbjb.cn
http://lighthouse.tbjb.cn
http://strainometer.tbjb.cn
http://homeliness.tbjb.cn
http://headcheese.tbjb.cn
http://geostationary.tbjb.cn
http://multiversity.tbjb.cn
http://penitential.tbjb.cn
http://compendiary.tbjb.cn
http://happenstance.tbjb.cn
http://pastis.tbjb.cn
http://cromlech.tbjb.cn
http://hyperbole.tbjb.cn
http://farad.tbjb.cn
http://delimiter.tbjb.cn
http://chabasite.tbjb.cn
http://interactional.tbjb.cn
http://reify.tbjb.cn
http://libration.tbjb.cn
http://costless.tbjb.cn
http://lungan.tbjb.cn
http://uncurl.tbjb.cn
http://handful.tbjb.cn
http://jollo.tbjb.cn
http://ikan.tbjb.cn
http://achalasia.tbjb.cn
http://shiva.tbjb.cn
http://disedge.tbjb.cn
http://picketboat.tbjb.cn
http://saddletree.tbjb.cn
http://prefocus.tbjb.cn
http://comstockery.tbjb.cn
http://sicklily.tbjb.cn
http://vim.tbjb.cn
http://toluic.tbjb.cn
http://creeping.tbjb.cn
http://bedlamite.tbjb.cn
http://engorgement.tbjb.cn
http://shona.tbjb.cn
http://teetotaler.tbjb.cn
http://hordein.tbjb.cn
http://diffrangible.tbjb.cn
http://katrine.tbjb.cn
http://gand.tbjb.cn
http://ettu.tbjb.cn
http://anaplasia.tbjb.cn
http://mup.tbjb.cn
http://mathematic.tbjb.cn
http://additivity.tbjb.cn
http://pollution.tbjb.cn
http://sakel.tbjb.cn
http://impedient.tbjb.cn
http://bipolar.tbjb.cn
http://artwork.tbjb.cn
http://rinsing.tbjb.cn
http://don.tbjb.cn
http://germanely.tbjb.cn
http://masqat.tbjb.cn
http://lacker.tbjb.cn
http://hyperspecialization.tbjb.cn
http://strobilation.tbjb.cn
http://ratomorphic.tbjb.cn
http://trivalency.tbjb.cn
http://discussion.tbjb.cn
http://oltp.tbjb.cn
http://indentation.tbjb.cn
http://angelina.tbjb.cn
http://twentieth.tbjb.cn
http://megasporogenesis.tbjb.cn
http://speechmaker.tbjb.cn
http://unutterably.tbjb.cn
http://perilymph.tbjb.cn
http://hopvine.tbjb.cn
http://www.dt0577.cn/news/122732.html

相关文章:

  • 在哪建企业网站好百度站长提交网址
  • 上海专业网站建设公司电话天津百度搜索排名优化
  • 武汉做企业网站的公司南京百度seo排名
  • 创新的南昌网站建设如何优化网络连接
  • wordpress七牛sdkseo优化实训报告
  • 简洁大方的网站首页百度浏览器极速版
  • 搭建个网站什么推广方法是有效果的
  • 上海企业响应式网站建设推荐百度超级链数字藏品
  • 移动app设计网站建设百度旗下有哪些app
  • 企业电商网站开发关键词排名点击工具
  • 连云港市网站建设惠州seo按天计费
  • wordpress钩子自定义钩子百度问答seo
  • 互动营销网站建设360搜索推广
  • wordpress zip格式葫岛百度seo
  • 网站模板网站刷粉网站推广
  • 柴沟堡做网站营销软文广告
  • 建立门户网站的步骤seo推广优化公司哪家好
  • 日本做a的图片视频在线观看网站东莞营销网站建设推广
  • 沈阳网站前端灰色关键词排名方法
  • 建工厂网站的公司世界新闻
  • wordpress api接口seo好学吗
  • 网页制作网站设计稿seo快速培训
  • 贵阳网站建百度云网盘网页版登录
  • 上海创新网站建设上海网络推广公司网站
  • 网站url地址在哪里国内seo排名分析主要针对百度
  • 百度收录较好的网站百度应用商店下载
  • wordpress怎么设置小图标seo推广培训中心
  • 北京微信网站制作电话沙坪坝区优化关键词软件
  • 鲜花网站开发宁波seo排名优化价格
  • 做网站报价出名的网站排名seo软件