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

国内商城网站建设仿中国化妆品网站模板

国内商城网站建设,仿中国化妆品网站模板,推广普通话主题班会,免费图文制作app一、问题描述 org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "EP_MAPPING" not found (this database is empty);大概就是说在引入mybatis-plus的依赖后,找不到数据库找不到表的问题。 排查方向:在引入mybatish2时,是可以正常…

一、问题描述

org.h2.jdbc.JdbcSQLSyntaxErrorException:  Table "EP_MAPPING" not found (this database is empty);

大概就是说在引入mybatis-plus的依赖后,找不到数据库找不到表的问题。
排查方向:在引入mybatis+h2时,是可以正常运行的,但是改为mybtis-plus后,报错找不到tables。按理说,mybatis-plus集成了mybatis,一般不会出现这样的问题。
排查结果:版本问题,不兼容。
springboot 2.7.x
mybatis-plus 3.5.3.2
h2内嵌在springboot parent里边

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.7.14</version><relativePath/> <!-- lookup parent from repository --></parent><groupId>cn.isungent.ird</groupId><artifactId>epdx</artifactId><version>0.0.1-SNAPSHOT</version><name>epdx</name><description>Enterprise Data Platform</description><properties><java.version>1.8</java.version><mybatis-plus.version>3.5.3.2</mybatis-plus.version></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><!-- NOTE: cannot exclude jackson because swagger needs it. --></dependency><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>2.3.1</version></dependency><dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId><scope>runtime</scope></dependency><dependency><groupId>com.mysql</groupId><artifactId>mysql-connector-j</artifactId><scope>runtime</scope></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><scope>runtime</scope><optional>true</optional></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-configuration-processor</artifactId><optional>true</optional></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter-test</artifactId><version>${mybatis-plus.version}</version><scope>test</scope></dependency><!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --><dependency><groupId>com.google.code.gson</groupId><artifactId>gson</artifactId><version>2.10.1</version></dependency><!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --><dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.12.0</version></dependency><!-- https://mvnrepository.com/artifact/org.mockito/mockito-core --><dependency><groupId>org.mockito</groupId><artifactId>mockito-core</artifactId><version>4.11.0</version><scope>test</scope></dependency><!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><version>3.0.0</version></dependency><dependency><groupId>io.springfox</groupId><artifactId>springfox-boot-starter</artifactId><version>3.0.0</version></dependency><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger-ui</artifactId><version>3.0.0</version></dependency><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><version>${mybatis-plus.version}</version></dependency><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-extension</artifactId><version>${mybatis-plus.version}</version></dependency></dependencies><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build>
</project>

yml配置

spring:datasource:driverClassName: org.h2.Driverurl: jdbc:h2:mem:test-dbsql:init:data-locations: classpath:db/data.sqlencoding: utf8schema-locations: classpath:db/schema.sqlh2:console:enabled: truepath: /h2-console
http://www.yayakq.cn/news/835761/

相关文章:

  • 网页设计网站建设报告增城网站定制开发公司
  • 广州网页设计做网络优化哪家公司比较好
  • 关于加强网站建设的情况说明中国建筑集团有限公司是国企吗
  • 网站建设初学app网站建设哪家好
  • 为什么做网站必须要用域名网页设计人员招聘
  • 开发网站企业国际贸易网址
  • 关于旅行社网站规划建设方案书seo短视频网页入口引流方法是什么
  • 企业网站案例分析成都网站搜索引擎优化
  • 建设银行国管公积金管理中心网站建站之星管理中心
  • 加盟网站建设服务广东省东莞市建设培训中心网站
  • 网站建设 软件微网站的好处
  • 怎么仿制一个网站无备案网站做cdn
  • 一微网站建设公司网站设计与制作说明书
  • 做明星ps黄图网站哪些网站可以做电脑画画赚钱
  • 微信做淘宝优惠券但网站是怎么建设但学校官网网页怎么制作html
  • 罗山网站建设2021年uc秒懂网址推荐
  • p2p网站建设的步骤过程一级A视网站 一级做爰片
  • 网站建设方案哪家好 推荐用什么做asp网站
  • 宝洁公司网站建设案例wordpress可以卸载
  • 攸县网站定制淄博网站优化推广
  • 洛阳霞光营销型网站石家庄公司建设网站
  • 自己怎么建个网站赚钱四川电脑网站建设
  • 南京产品网站建设收费巨鹿网站制作
  • 深圳网站建设与设计制作佛山高端网站开发公司
  • 做网站公司介绍ppt按文章标题相关wordpress
  • 大连开发区招聘网站淘宝网页设计模板素材
  • 佛山网站建设原创design中国官网
  • 建网站的流程费用泉州百度首页优化
  • 梧州网站建设哪家好行业网站建设运营
  • 企业网站seo诊断杭州编程培训机构排名