![](https://img-blog.csdnimg.cn/20190927151117521.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
spring boot
spring boot
angen2018
积少成多
展开
-
springboot 整合swagger
参数类型为String,作用为指定对对应类型定义的引用,重写指定的任何其他数据名称。参数类型为boolean,作用为是否允许将属性指定为只读,默认为false。参数类型为String,作用为指定参数是否可以为空,默认为false。参数类型为boolean,作用为是否允许传递空值,默认为false。参数类型为String,作用为允许重写属性的名称。参数类型为int,作用为允许显式地对模型中的属性排序。参数类型为String,作用为限制此参数存储的长度。参数类型为String,作用为该字段的注释说明。...原创 2022-08-05 12:27:12 · 288 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
1,查看Mapper包扫秒,扫描到具体的mapper包。3,查看扫描javaBean包的配置。4,检测该加的注解是否都加上了。2,查看扫描xml的配置。原创 2022-08-01 19:59:11 · 296 阅读 · 0 评论 -
spring security +JWT认证
登录后才会访问到你想访问的页面。查看security过滤器链路。打个断点,开启调试模式。原创 2022-08-03 19:05:33 · 75 阅读 · 0 评论 -
springboot 整合rabbitmq 以及介绍
起步依赖<!--rabbitmq--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency>配置spring: rabbitmq:原创 2021-09-05 23:48:54 · 939 阅读 · 1 评论 -
springboot项目部署
Spring Boot的五种部署方式原创 2022-07-29 16:53:05 · 89 阅读 · 0 评论 -
SpringBoot 介绍 常用注解介绍
SpringBoot是一个基于spring的框架,简化开发配置,提高开发效率。4,直接嵌入tomcat等其他servlet容器。或者使用idea创建springboot项目。2,提供起步依赖的简化配置。1,尽可能的自动配置。3,解决版本冲突问题。5,不需要xml配置。............原创 2022-07-28 18:31:07 · 109 阅读 · 0 评论 -
springboot配置属性介绍
SpringBoot配置属性之DataSource - 龙昊雪 - 博客园原创 2022-02-10 15:20:03 · 486 阅读 · 0 评论 -
若依前后端分离简单使用
准备好一张表/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : ry_vue Target Server Type : MySQL Target Server Ver原创 2021-09-16 10:23:48 · 554 阅读 · 0 评论 -
spring boot Actuator监控
参考:Spring Boot Actuator:健康检查、审计、统计和监控 - 简书 (jianshu.com)加入起步依赖 <!--actuator起步依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator&l原创 2021-09-01 01:28:01 · 72 阅读 · 0 评论 -
spring boot 自定义起步依赖
需求:我们在一个项目中添加自定义起步依赖,无序额外配置即可使用jedis(开箱即用)首先我们在mystarter自定义起步依赖model中加入<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <versio原创 2021-08-31 23:44:33 · 506 阅读 · 0 评论 -
spring boot 使用Jetty容器来代替tomcat
参看SpringBoot切换Tomcat容器,SpringBoot使用Jetty容器 - 蕃薯耀 - 博客园 (cnblogs.com)直接在pom.xml配置文件中修改即可 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId&原创 2021-08-31 01:33:50 · 848 阅读 · 0 评论 -
spring Condition接口了解
/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https.原创 2021-08-31 01:11:43 · 275 阅读 · 0 评论 -
spring-boot整合redis,自定义序列化方式,RedisUtil工具类
参考(12条消息) spring-boot整合redis,自定义序列化方式,RedisUtil工具类_燕某的博客-CSDN博客在RedisTemplate.java源码中我们可以看到,我们可以看到这样一段代码if (defaultSerializer == null) { defaultSerializer = new JdkSerializationRedisSerializer( classLoader != null ? classLoader : this.getClas原创 2021-08-30 21:40:17 · 206 阅读 · 0 评论 -
spring boot 整合junit
1,添加起步依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency>2,在原创 2021-08-30 14:57:55 · 66 阅读 · 0 评论 -
spring boot 整合mybatis
1,添加mybatis起步依赖 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.2.0</version> </depen原创 2021-08-30 14:52:56 · 81 阅读 · 0 评论 -
spring boot 环境切换生效的方式
1,profiles方式spring.profiles.active=2,jvm 参数配置-Dspring.profiles.active=dev3,java -jar xxx.jar --spring.profiles.active=dev原创 2021-08-30 01:58:46 · 101 阅读 · 0 评论 -
spring Boot yml/yaml 和properties配置文件
yml/yaml参考:YAML 入门教程 | 菜鸟教程 (runoob.com)#自定义简单类型数据,记得【值前面要有一个空格】username: zhangsan#pojo类型数据#${username}参数引用user: id: 1 username: ${username} password: 123456#数组类型数据ips: - 192.168.0.2 - 192.168.0.3#集合类型的类型数据books: - bookname: jav原创 2021-08-30 00:39:12 · 126 阅读 · 0 评论