随笔分类 -  springboot

摘要:什么是Git? 资料来源:tyut高程昕老师。在此鸣谢。 Git概念: Git是一款分布式版本控制系统分布式:如何把一个需要非常巨大的计算能力才能解决的问题分成许多小的部分,然后把这些部分分配给多个计算机进行处理,最后把这些计算结果综合起来得到最终的结果。版本控制系统:版本控制系统(VCS)最基本的 阅读全文
posted @ 2023-07-04 10:50 临易 阅读(21) 评论(0) 推荐(0) 编辑
摘要:项目样式: SQL: CREATE TABLE `t_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `password` varchar(32) NOT NULL, PRIMARY KEY 阅读全文
posted @ 2023-07-04 10:29 临易 阅读(588) 评论(0) 推荐(0) 编辑
摘要:项目展示: 项目结构: SQL: CREATE TABLE `t_article` ( `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '文章id', `title` varchar(200) DEFAULT NULL COMMENT '文章标题', `co 阅读全文
posted @ 2023-07-04 09:44 临易 阅读(91) 评论(0) 推荐(0) 编辑
摘要:最终样式: 增: 删: 改: 项目结构: - springboot1.5.9以下兼容jdk1.7- springboot2.x.x版本兼容jdk1.8- springboot3.0及以上版本兼容jdk17- springboot2.1之后的版本已经兼容JDK11 pom.xml: <?xml ver 阅读全文
posted @ 2023-07-04 09:33 临易 阅读(243) 评论(0) 推荐(0) 编辑
摘要:Maven下载地址:https://maven.apache.org/download.cgi 下载后进行解压,记住解压路径。 mvn -v 阅读全文
posted @ 2023-07-04 09:23 临易 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#查询所有内容select * from employeeselect (属性1,属性2,...) from 表名#通过id查询select * from employee where uid = 1select (属性1,属性2,...) from 表名 where 属性 = 指定的属性值#增加i 阅读全文
posted @ 2023-07-04 08:31 临易 阅读(22) 评论(0) 推荐(0) 编辑
摘要:java.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.component.repository.exc Maven版本过高 ,与你使用的IDEA版本不兼容。 推荐版本:maven3.6(建议)/mave 阅读全文
posted @ 2023-07-04 08:29 临易 阅读(317) 评论(0) 推荐(0) 编辑
摘要:Hello SpringBoot! springboot的启动 1.创建springboot项目。注意选择spring-boot-starter-parent版本。版本兼容适配问题请看下列。 springboot1.5.9以下兼容jdk1.7 springboot2.x.x版本兼容jdk1.8 sp 阅读全文
posted @ 2023-07-04 08:24 临易 阅读(165) 评论(0) 推荐(0) 编辑
摘要:SpringBoot简介 Spring Boot 优点 •可快速构建独立的Spring应用 •直接嵌入Tomcat(无需部署WAR文件) •提供依赖启动器简化构建配置 •极大程度的自动化配置Spring和第三方库 •提供生产就绪功能 •极少的代码生成和XML配置 •Spring Boot是基于Spr 阅读全文
posted @ 2023-07-04 08:19 临易 阅读(21) 评论(0) 推荐(0) 编辑
摘要:完整日志: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project api: There are test failures. Please 阅读全文
posted @ 2022-08-01 11:35 临易 阅读(217) 评论(0) 推荐(0) 编辑
摘要:第一章 1.1 填空题 Pivotal 团队在原有 spring 框架的基础上开发了全新的Spring Boot框架。 Spring Boot框架在开发过程中大量使用 约定优先配置 的思想来摆脱框架中各种复杂的手动配置。 Spring Boot 2.1.3版本要求Java 8 及以上版本的支持。 S 阅读全文
posted @ 2022-05-31 23:40 临易 阅读(3181) 评论(0) 推荐(1) 编辑
摘要:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.的解决方法 问题截图: 解决方法: 在pom.xml中的依赖中加入myba 阅读全文
posted @ 2022-03-22 20:36 临易 阅读(2283) 评论(0) 推荐(0) 编辑
摘要:解决方法: 在html中添加此标签: <html lang="en" xmls="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> 刷新后即可解决问题。 阅读全文
posted @ 2022-03-01 20:40 临易 阅读(199) 评论(0) 推荐(0) 编辑
摘要:Springboot中可以用@validated来校验数据,如果数据异常则会统一抛出异常,方便异常中心统一处 理。当我们写了一个注解让我们的name只能支持Email格式时,输入@Email爆红。 解决方法: 在pom.xml中,添加依赖: <dependency> <groupId>org.spr 阅读全文
posted @ 2022-02-28 22:35 临易 阅读(114) 评论(0) 推荐(0) 编辑
摘要:1、在springboot项目中的resources目录下新建一个文件 application.yml 2、编写一个实体类 Dog; import org.springframework.beans.factory.annotation.Value; import org.springframewo 阅读全文
posted @ 2022-02-28 22:32 临易 阅读(152) 评论(0) 推荐(0) 编辑
摘要:server: port: 8080 #对空格要求十分严格 #普通的key-value #name: qinjiang #对象 student: name: qinjiang age: 3 #行内写法 student2: {name: qinjiang,age: 3} #数组 pets: - cat 阅读全文
posted @ 2022-02-28 21:29 临易 阅读(74) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示