- remove sqlSessionFactoryBean.setTypeAliasesPackage("com.your.packae.pojo")
- change resultType="MyClass" to resultType="com.your.packae.pojo.MyClass"
- repackage
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin>
spring boot打包发布问题: mybatis-spring & spring boot - Could not resolve type alias issue
猜你喜欢
转载自blog.csdn.net/qq_35893120/article/details/80637143
今日推荐
周排行