使用swagger2 controller层实现接口后,无法生成API,
原因: spring 动态代理,实现接口时使用JDK, 其他情况使用cglib
解决方式:强制使用cglib
springboot中中配置如下:
#动态代理配置 =true -target-class=true
使用swagger2 controller层实现接口后,无法生成API,
原因: spring 动态代理,实现接口时使用JDK, 其他情况使用cglib
解决方式:强制使用cglib
springboot中中配置如下:
#动态代理配置 =true -target-class=true