RPC框架Springboot版
移植
-
问题:移植过程中出现依赖无法导入问题
解决:依赖位置放的不对 放到了里面 这是版本号管理的地方
-
问题:启动出现问题 slf4j包中有冲突
LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Reload4jLoggerFactory loaded from file:/E:/Java/maven/repository/org/slf4j/slf4j-reload4j/1.7.36/slf4j-reload4j-1.7.36.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.Reload4jLoggerFactory at org.springframework.util.Assert.instanceCheckFailed(Assert.java:702)
解决:Spring Boot 项目一般都会引用 spring-boot-starter 或者 spring-boot-starter-web,而这两个起步依赖中都已经包含了对于 spring-boot-starter-logging 的依赖,所以,我们无需额外添加依赖。 测试类也是 加入了就不需要再加入了
-
问题:报错 Error creating bean with name ‘requestMappingHandlerAdapter‘ defined in class path resource……
解决:和jackson依赖有冲突 回退到2.11.4版本 -
**成功 开始测试 就是整合的有点问题 **
-
问题 相关的数据库启动类 之类的Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required 这些放了 依旧还是上面的问题
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.16</version> </dependency> <!--主要提供了三个功能:第一个是对数据源的装配,第二个是提供一个JdbcTemplate简化使用,第三个是事务。--> <!--其实这里并不用配置 因为底下的mybatis的启动类已经引入了对应包--> <dependency> <groupId>org.springframework.boot</groupId>
-