打包时提示: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘
问题:Caused by: java.lang.IllegalArgumentException: Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required解决方法:需要删除启动类注解@SpringBootApplication中的参数:DataSourceAutoConfiguration.class正确: