05 2022 档案
摘要:web项目发布后的结构目录 下面的这个classes文件夹就是我们要找的classpath.
阅读全文
摘要:在SpringBoot配置Swagger时,出现报错 org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested ex
阅读全文
摘要:报错信息: Field userMapper in com.frank.service.UserServiceImpl required a bean of type 'com.frank.mapper.UserMapper' that could not be found.Field userMa
阅读全文
摘要:这个报错信息在Spring与mybaits整合的配置文件中定义,出现这个错误的原因是xml文件没有配置好: 1.mappper.xml文件没有与对应mapper接口关联 2.Spring与mybaits整合的配置文件中没有配置正确的xml文件
阅读全文
摘要:Java8新增了default方法,可以在不影响接口的实现类的前提下为接口添加新的功能特性。 通过在接口定义的方法的访问修饰符前加上default,那么接口的实现类就可以不用实现该方法。 例如:WebMvcConfigurer 它的方法全是defult方法,所以它的实现类无需实现这些方法。
阅读全文
摘要:欢迎来到我的友链小屋 展示本站所有友情站点,排列不分先后,均匀打乱算法随机渲染的喔! 友链信息 博客名称:frankLiang442博客网址:https://www.cnblogs.com/frankLiang442/博客头像:https://pic.cnblogs.com/avatar/28798
阅读全文
摘要:#classpath 在Spring中,classpath就相当于src/main/resources文件夹 #file 在spring Boot中用file:开头表示存放在电脑上的实际位置
阅读全文