springboot
borderhz
这个作者很懒,什么都没留下…
展开
-
springboot+thymeleaf:Error resolving template template might not exist or might not be accessible
Error resolving template template might not exist or might not be accessible框架:springboot+mybatisplus+shiro+thymeleaf问题:模板页不存在先自查1.依赖是否导入正确2.requestmapping路径是否正确我的原因:easycode自动生成代码时,controller层会在整个类前加上一个统一的requestmapping,导致跳转时出现问题解决办法:把路径原创 2021-05-22 23:24:43 · 102 阅读 · 0 评论 -
springBoot 启动之后报错Unsatisfied dependency expressed through field ‘baseMapper’
springBoot 启动之后报错Unsatisfied dependency expressed through field ‘baseMapper’框架:springboot+mybatisplus+shiro+thymeleaf问题:springBoot 启动之后报错Unsatisfied dependency expressed through field ‘baseMapper’Error starting ApplicationContext. To display the c原创 2021-05-22 23:01:28 · 6681 阅读 · 0 评论 -
springboot项目启动后静态资源文件找不到
静态资源文件找不到框架:springboot+mybatisplus+shiro原因:springboot在启动时会自动装配,但当重写某个配置文件之后,重写的将覆盖默认的配置,所以在重写WebMvcConfigurer后,静态资源访问路径被覆盖,需要手动添加配置解决办法: /** * 发现如果继承了WebMvcConfigurationSupport,则在yml中配置的相关内容会失效。 需要重新指定静态资源 */ @Override publi...原创 2021-05-22 22:25:37 · 1761 阅读 · 0 评论