springboot
小雾最秀
这个作者很懒,什么都没留下…
展开
-
Spring boot&Mybatis 启动报错 Failed to auto-configure a DataSource
自己在练习springboot的时候 遇到启动错误 网上找解决办法,找到的转-解决他的提供的解决方法有两种,我用的第一种,成功了.在 @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})然后再次启动即可...转载 2018-06-10 09:12:09 · 178 阅读 · 0 评论 -
spring boot访问静态资源出错
1.写一个配置类import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;import org.springframework.web.servlet.config....原创 2018-07-27 15:50:04 · 959 阅读 · 0 评论 -
Not allowed to load local resource: 报错解决方法
出现这样的错一般为直接引用项目外的资源(图片,视频).然后打开网页结果不允许直接访问我们就需要配置一个虚拟路径来访问系统中的资源.容器为tomcat解决方法1. 打开tomcat服务界面 在下面选择Modules 然后选择Add Web Module2. 选择Browse 选择你的资源目录,然后填写path 假如选择的为d盘 d盘下有一张a.png 那么你再写...原创 2018-08-09 09:30:43 · 88743 阅读 · 26 评论