学习springboot2遇到的问题

本文总结了在学习SpringBoot2时遇到的一些问题,包括使用Spring Initializr创建项目时的网络超时问题,Maven打包时清除本地文件失败的解决方法,配置数据源时遇到的问题,以及Spring MVC中关于Cookie处理的注意事项。同时,文章指出在处理矩阵变量时,正确绑定路径的重要性。
摘要由CSDN通过智能技术生成

学习springboot2遇到的问题

1.springboot使用spring initializr创建超时问题
该网络或者
https://start.spring.io/
改为http

2打包到本地清除不了】
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.1.0:clean (default-clean) on project boot01-helloword: Failed to clean project: Failed to delete D:\Users\86139\IdeaProjects\boot01-helloword\target\boot01-helloword-1.0-SNAPSHOT.jar

解决:把运行的windows窗口关闭

3.本地maven没有mysql自己写一个(解决方法重新构建)
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

Action:

Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

4.这里手动配置文件开启才可以用&

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值