Loading

摘要: 在SpringBoot配置Swagger时,出现报错 org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested ex 阅读全文
posted @ 2022-05-24 11:18 瑞莫蒂 阅读(64) 评论(0) 推荐(0)
摘要: 报错信息: Field userMapper in com.frank.service.UserServiceImpl required a bean of type 'com.frank.mapper.UserMapper' that could not be found.Field userMa 阅读全文
posted @ 2022-05-23 19:06 瑞莫蒂 阅读(131) 评论(0) 推荐(0)
摘要: 这个报错信息在Spring与mybaits整合的配置文件中定义,出现这个错误的原因是xml文件没有配置好: 1.mappper.xml文件没有与对应mapper接口关联 2.Spring与mybaits整合的配置文件中没有配置正确的xml文件 阅读全文
posted @ 2022-05-21 09:52 瑞莫蒂 阅读(269) 评论(0) 推荐(0)
摘要: Java8新增了default方法,可以在不影响接口的实现类的前提下为接口添加新的功能特性。 通过在接口定义的方法的访问修饰符前加上default,那么接口的实现类就可以不用实现该方法。 例如:WebMvcConfigurer 它的方法全是defult方法,所以它的实现类无需实现这些方法。 阅读全文
posted @ 2022-05-18 20:11 瑞莫蒂 阅读(526) 评论(0) 推荐(0)
摘要: #classpath 在Spring中,classpath就相当于src/main/resources文件夹 #file 在spring Boot中用file:开头表示存放在电脑上的实际位置 阅读全文
posted @ 2022-05-17 10:48 瑞莫蒂 阅读(71) 评论(0) 推荐(0)