随笔分类 -  Spring Boot

摘要:HTTP请求的格式: 请求行:描述请求方式、请求资源的名称、http协议的版本号。 例如: GET/BOOK/JAVA.HTML HTTP/1.1 请求头:描述服务器主机名,客户机的环境信息等 Accept: 告诉服务器,客户机支持的数据类型 (例如:Accept:text/html,image/* 阅读全文
posted @ 2021-08-20 07:51 清语堂 阅读(1343) 评论(0) 推荐(0) 编辑
摘要:https://mybatis.org/mybatis-3/zh/getting-started.html Springboot与MyBatis简单整合 :https://www.cnblogs.com/wangshen31/p/8744157.html 阅读全文
posted @ 2021-07-19 09:25 清语堂 阅读(26) 评论(0) 推荐(0) 编辑
摘要:https://www.zhihu.com/question/39356740 1. @Autowired的默认装配 我们都知道在spring中@Autowired注解,是用来自动装配对象的。通常,我们在项目中是这样用的: package com.sue.cache.service; import 阅读全文
posted @ 2021-07-17 19:57 清语堂 阅读(268) 评论(1) 推荐(0) 编辑
摘要:重新Rubuild Project 停止在 运行时错误: 试着的解决方式 运行clean 、install 、运行。 运行正常!! 解决方法 删除 .idea ,重新打开项目 ,重新建立工程Rebuild Project ,信息如下: java: /E:/JPADemo/src/main/java/ 阅读全文
posted @ 2021-07-15 10:43 清语堂 阅读(3316) 评论(0) 推荐(1) 编辑
摘要:https://blog.csdn.net/qq_42873554/article/details/100182149?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162630638516780264085291%2522%252C 阅读全文
posted @ 2021-07-15 08:14 清语堂 阅读(2799) 评论(0) 推荐(0) 编辑
摘要:API接口1:添加一条记录 @PostMapping(path="/addUser") //用请求参数 @ResponseBody //必须加@RequestBody才能接收到postForObject发来的数据 public int addUser(@RequestBody User user) 阅读全文
posted @ 2021-07-14 10:55 清语堂 阅读(2041) 评论(0) 推荐(0) 编辑
摘要:理解RESTful接口 :https://www.cnblogs.com/ecs-console/p/13324085.html 传统url接口请求与RESTful风格的区别:https://blog.csdn.net/qq_43251032/article/details/102720392 Sp 阅读全文
posted @ 2021-07-13 16:00 清语堂 阅读(1427) 评论(0) 推荐(0) 编辑
摘要:建立Entity package com.example.jpademo.Entity; import lombok.Data; import javax.persistence.*; @Entity @Table(name="t_book") @Data public class Book { @ 阅读全文
posted @ 2021-07-11 15:12 清语堂 阅读(178) 评论(0) 推荐(0) 编辑
摘要:【postman】发送一个API请求: https://www.cnblogs.com/prince365/p/12144748.html 使用@RequestMapping返回中文乱码:https://blog.csdn.net/qq_38412354/article/details/899817 阅读全文
posted @ 2021-07-11 08:53 清语堂 阅读(24) 评论(0) 推荐(0) 编辑
摘要:@GetMapping是 一个组合注解,是@RequestMapping(method = RequestMethod.GET)的缩写。 @PostMapping是一个组合注解,是@RequestMapping(method = RequestMethod.POST)的缩写。 ps : Reques 阅读全文
posted @ 2021-07-11 07:31 清语堂 阅读(308) 评论(0) 推荐(0) 编辑
摘要:https://www.awaimai.com/2596.html 1、定义 Bean是Spring框架中最核心的两个概念之一(另一个是面向切面编程AOP) Spring 官方文档对 bean 的解释是: In Spring, the objects that form the backbone o 阅读全文
posted @ 2021-07-09 18:47 清语堂 阅读(1152) 评论(0) 推荐(0) 编辑
摘要:https://geek-docs.com/spring-boot/spring-boot-tutorials/requestparam.html 阅读全文
posted @ 2021-07-09 09:11 清语堂 阅读(41) 评论(0) 推荐(0) 编辑
摘要:容器,顾名思义,简单来说,就是放对象,拿对象。Spring容器就是管理放进容器中的对象的。 Spring容器是Spring的核心,一切Spring bean都存储在Spring容器内,并由其通过IoC技术管理。Spring容器也就是一个bean工厂(BeanFactory)。应用中bean的实例化, 阅读全文
posted @ 2021-07-08 17:11 清语堂 阅读(1669) 评论(0) 推荐(0) 编辑
摘要:datasource spring.dao.exceptiontranslation.enabled是否开启PersistenceExceptionTranslationPostProcessor,默认为true spring.datasource.abandon-when-percentage-f 阅读全文
posted @ 2021-07-06 15:36 清语堂 阅读(601) 评论(0) 推荐(0) 编辑
摘要:一、建立项目 依赖项选择: pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XML 阅读全文
posted @ 2021-07-06 14:17 清语堂 阅读(836) 评论(0) 推荐(0) 编辑
摘要:原文:https://blog.csdn.net/zc1320030382/article/details/78366370?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Ed 阅读全文
posted @ 2021-07-05 16:00 清语堂 阅读(132) 评论(0) 推荐(0) 编辑
摘要:原文:https://blog.csdn.net/orecle_littleboy/article/details/82458956 ORM简介 ORM(Object Relational Mapping,对象关系映射)模式是一种为了解决面向对象与关系数据库存在的互不匹配的技术。简单的说,ORM是通 阅读全文
posted @ 2021-07-05 14:36 清语堂 阅读(4750) 评论(0) 推荐(0) 编辑

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