Exception calculating properties for model swagger-ui的model字段不显示问题

Exception calculating properties for model swagger-ui的model字段不显示问题_第1张图片

2020-12-15 10:17:00.952  WARN 11056 --- [  restartedMain] s.d.s.p.CachingModelPropertiesProvider   : Exception calculating properties for model(com.cjw.javaWebFunAll.module.chandao.staff.StaffCreateDto) -> ModelContext{groupName=default, type=com.cjw.javaWebFunAll.module.chandao.staff.StaffCreateDto, isReturnType=false, view=Optional.empty}. null

用百度搜不到答案,故发此博客帮助后人

别用懒加载就好

spring.main.lazy-initialization=false

github上有人提了bug了

https://github.com/springfox/springfox/issues/2992

你可能感兴趣的:(java,java,swagger-ui,springfox)