zys182

Results 2 comments of zys182

you may try this: `@Component public class Swagger2 implements ApplicationListener, CommandLineRunner { /** * 由于swagger和jackson注解有冲突,所以在服务启动时短暂禁用注解,服务启动完成恢复正常 * https://github.com/springfox/springfox/issues/2353 */ private ObjectMapper objectMapper; @Override public void onApplicationEvent(ObjectMapperConfigured event) { // 短暂禁用注解,让swagger完成接口的注册 objectMapper...

可以在application.properties中配置mybatis.type-handlers-package=xxx.包名