随笔分类 -  Spring Boot

摘要:@PathVariable:接收请求路径中占位符的值 @RequestParam:将请求参数绑定到controller的方法参数上 /** * 接收普通请求参数 * http://localhost:8080/hello/show16?name=linuxsir * url参数中的name必须要和@ 阅读全文
posted @ 2021-06-07 21:23 又又又8 阅读(57) 评论(0) 推荐(0)
摘要:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 millisecond 阅读全文
posted @ 2021-03-13 14:00 又又又8 阅读(213) 评论(0) 推荐(0)
摘要:1 依赖管理 1.1 父项目做依赖管理 配置文件pom.xml中定义的父项目: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <vers 阅读全文
posted @ 2021-02-13 14:34 又又又8 阅读(163) 评论(0) 推荐(0)
摘要:Error executing Maven. 2 problems were encountered while building the effective settings. 检查maven安装路径/conf/settings.xml文档是否有多余的标签,或者在settings.xml中添加内容 阅读全文
posted @ 2021-01-29 11:41 又又又8 阅读(418) 评论(0) 推荐(0)