settings apache-maven springboot specified

springboot整合JUnit

步骤: 导入测试对应的starter(springboot帮我们自动导入,纯手工创建时一定记得自己导入) 测试类使用@SpringBootTest修饰 使用自动装配的形式添加要测试的对象 名称:@SpringBootTest 类型:测试类注解 位置:测试类定义上方 作用:设置JUnit加载的Spri ......
springboot JUnit

thread promise get_future(),get(), promise set_value()

#include <chrono> #include <ctime> #include <future> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <thread> #in ......
promise get_future get set_value thread

springboot请求响应

springboot请求响应 1.什么是请求?响应? 请求:获取请求数据 响应:设置响应数据 2.原始方法获取请求数据 Controller方法形参中声明HttpServletRequest对象调用对象的getParameter(参数名) 这种方式复杂繁琐 // @RequestMapping("/ ......
springboot

(4.3)数组、对象及类数组对象,set的用法,正则表达式的常用方法,蓝桥杯备赛-(生成数组、数组去重、实现模板字符串的解析、新课上线啦)

1.1数组、对象及类数组对象 1.数组: ​ 数组是有序的数据集合,其中的索引值从0开始递增,并且数组有length属性,可以获取数组内的元素个数,其中的值可以是任何的数组类型。 2.对象: ​ 对象是无序的是由一个或多个键值对组成的数据集合,对象没有length属性。 3.伪数组(类数组对象): ......
数组 对象 蓝桥 正则 表达式

怎么在springboot中配置https证书的详细教程

前言 由于小程序需要https,然后之前申请的域名过期了,用了两年由于忘记续费要将域名赎回居然要1200.... 想了一下之前还有另一个域名,干脆就用这个域名弄个二级域名出来,所以二级域名建立出来后需要在springboot项目上开启https访问 废话不多说,开整 在阿里云新建二级域名 这个应该不 ......
springboot 证书 教程 https

SpringBoot启动异常的错误①

java: 无法访问org.springframework.boot.SpringApplication 错误的类文件: /D:/maven/repository/org/springframework/boot/spring-boot/3.0.5/spring-boot-3.0.5.jar!/or ......
SpringBoot 错误

Springboot 系列 (28) - Springboot+HBase 大数据存储(六)| Springboot 项目通过 RestTemplate 访问 HBase REST 服务

Apache HBase 是 Java 语言编写的一款 Apache 开源的 NoSQL 型数据库,不支持 SQL,不支持事务,不支持 Join 操作,没有表关系。Apache HBase 构建在 Apache Hadoop 和 Apache Zookeeper 之上。Apache HBase: h ......
Springboot HBase RestTemplate 项目 数据

springboot 日志

<logger name="com.sinoservices.chainwork.bms" level="INFO" /><logger name="org.hibernate.orm.deprecation" level="error"/><logger name="druid" additivi ......
springboot 日志

SpringBoot+Prometheus+Grafana监控服务

服务模块 pom.xml文件引入依赖 ####基于SpringBoot版本 <2.5.3> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> <v ......
SpringBoot Prometheus Grafana

JS利用set数组去重,new Set数组去重

1 a = [1,2,3,4,2,1,4] 2 3 // 利用set去重 4 b = new Set(a) 5 6 // 但是new Set()返回的数组实际上是伪数组,不可直接使用。 7 // 需要将其解构为真数组 8 b = [...new Set(a)] ......
数组 set new Set

27-springboot-thymeleaf内置对象

1、内置web对象 thymaleaf内置的web对象,可以直接在模板中使用,这些对象由#号开头: #request: 相当于HttpServletRequest 对象,这是Thymeleaf 3.x版本,若是Thymeleaf 2.x版本使用 #httpServletRequest; ${#req ......

26-springboot-thymeleaf字符串拼接-常量-符号

Thymeleaf 字符串拼接 一种是字符串拼接: <span th:text="'当前是第'+${sex}+'页 ,共'+${sex}+'页'"></span> 另一种更简洁的方式,使用“|”减少了字符串的拼接: <span th:text="|当前是第${sex}页,共${sex}页|"></s ......

25-springboot-thymeleaf的常见属性

th:action <form id="login" th:action="@{/login}">......</form> th:method <form id="login" th:action="@{/login}" th:method="post">......</form> th:href ......

24-springboot-thymeleaf的表达式

1.添加热部署,为了测试不用频繁重启 <!--热部署插件--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</ ......

23-springboot集成thymeleaf

Spring Boot 官方推荐前端不使用JSP,推荐使用thymeleaf来替代JSP技术; Thymeleaf是一种模板技术,该模板技术也采用Java语言开发的; 但是thymeleaf是另外一家公司开源做的,并不属于springboot,springboot只是很好地集成这种模板技术,作为前端 ......
springboot thymeleaf 23

动力节点王鹤SpringBoot3学习笔记——第四章 访问数据库

目录 第四章 访问数据库 4.1 DataSource 4.2 轻量的JdbcTemplate 4.2.1 准备环境 4.2.1.1 准备数据库和表脚本 4.2.1.2 创建Spring Boot工程 4.2.2 JdbcTemplate访问MySQL 4.2.3 NamedParameterJdb ......

22-springboot应用监控-actuator

可以做成页面监控(springboot-admin),而不是json的格式,看起来会更方便。 在生产环境中,有时可能需要监控服务的可用性,spring-boot 的 actuator 就是提供了对应用的配置查看、健康检查、相关功能统计等,可以通过HTTP,JMX来访问这些监控功能;(端点) 如何使用 ......
springboot actuator 22

idea 调试本地springboot微服务,设置不向eureka注册服务

背景dev 环境只有一个eureka 注册中心,企业多人同时本地调试服务,而 dev 服务器环境与个人本地网络不联通,如果个人将本地微服务注册到 eureka 注册中心,dev 上的服务调用微服务时,势必会因为 ribbon 负载均衡,将请求打到个人本地的服务上,但 dev 服务器与本地服务网络又不 ......
springboot eureka idea

ERR Client sent AUTH, but no password is set 异常解决

https://my.oschina.net/java1314/blog/3149015 https://www.cnblogs.com/le-papillion/p/14705668.html ......
password Client AUTH sent ERR

Springboot与Springcloud

springboot介绍 其实springboot就是一个maven项目,只不过使用了spring提供的多个starter来加载多个相关依赖包,starter简单说就是maven包的组合。 比如:只需要一个web的starter包就能直接启动web服务 <dependency> <groupId>o ......
Springcloud Springboot

SpringBoot大文件上传解决方案支持分片断点上传

​ PHP用超级全局变量数组$_FILES来记录文件上传相关信息的。 1.file_uploads=on/off 是否允许通过http方式上传文件 2.max_execution_time=30 允许脚本最大执行时间,超过这个时间就会报错 3.memory_limit=50M 设置脚本可以分配的最大 ......
断点 SpringBoot 解决方案 文件 方案

20-springboot打包部署

1.打war包 1. 程序入口类需扩展继承 SpringBootServletInitializer 类 2、程序入口类覆盖如下方法: @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder ap ......
springboot 20

es(Elasticsearch)查询报错: Set fielddata=true on [level] in order to load fielddata in memory by uninverting the inverted index

Invocation of init method failed; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, rea ......

垃圾回收之CardTable和Remembered Set

JVM 在进行垃圾收集的时候,有一项非常重要的工作就是确定这一次垃圾收集的对象到底有多少个,即确定 live set 的范围。 卡表和 RSet(Remember Set),是 JVM 为了解决分代收集时,live set 扫描需要穿梭到不同的代的时候的效率问题。 对于新生代垃圾收集器而言,这个问题 ......
Remembered CardTable 垃圾 Set

SpringBoot集成Activiti7-单独配置数据源

框架:SpringBoot + Mybatis + Activiti7 思路: 单独给mybatis和activiti配置datasource Mybati配置单数据源方法 单数据源只需要在yml中配置 url: jdbc:mysql://localhost:3306/localtest?serve ......

Springboot 系列 (27) - Springboot+HBase 大数据存储(五)| HBase REST 服务

REST (Representational State Transfer) 即表述性状态传递,是 Roy Fielding 博士 2000 年在他的博士论文中提出来的一种软件架构风格。它是一种针对网络应用的设计和开发方式,可以降低开发的复杂性,提高系统的可伸缩性。在三种主流的 Web 服务实现方案 ......
Springboot HBase 数据 REST 27

springboot集成mybatis-plus

springboot项目 先导入相关依赖mybatis-plus相关依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.0.5</v ......
mybatis-plus springboot mybatis plus

springboot起步依赖

<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> <relativePat ......
springboot

SpringBoot中操作Redis通过所有可能的key查询存在的key并解析为对象实体的通用方法

场景 SpringBoot中操作Redis的特殊操作-批量查询(通过key的集合批量查杜绝模糊搜索)、查询并解析对象list: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/129896929 在上面讲操作redis中特殊操作时, ......
SpringBoot 实体 key 对象 方法

springboot学习笔记1-基本介绍

springboot基本介绍 官方文档 什么是springboot spring boot可以轻松创建独立的、生产级的基于spring的应用程序 spring boot直接嵌入tomcat、jetty、或undertow, 无须打war包,可以直接运行spring boot应用程序 quicksta ......
springboot 笔记