settings apache-maven springboot specified

Can not construct instance of com.hm.drgs.platform.common.dto.data.group.DrgsRecordGroupResultDto, problem: Should never call 'set' on setterless property

报错全部信息: JSON parse error: Can not construct instance of com.hm.drgs.platform.common.dto.data.group.DrgsRecordGroupResultDto, problem: Should never cal ......

SQL concat_ws, collect_set, 和explode合并使用

1. 背景 有一个这样的数据集:字段和字段的值是两列 目的是将这个数据转换成规整的一个特征是一列的数据: 2. 做法 第一步:先造出列 select ucid ,CASE WHEN type ='性别' THEN label end `性别` ,CASE WHEN type ='产品' THEN l ......
collect_set concat_ws collect explode concat

解决SpringBoot多模块发布的问题

如果使用 SpringBoot 多模块发布到外部 Tomcat,可能会遇到各种各样的问题。本文归纳了以下 8 个原则和发布时经常出现的 4 个问题的解决方案,掌握了这些原则和解决方案,几乎可以解决绝大数 SpringBoot 发布问题。 SpringBoot 多模块发布的 8 大原则 1 在发布模块 ......
SpringBoot 模块 问题

Springboot LIST进行分割方法

在开发使用中我们经常会需要把一个LIST按组进行分割,下面记录一下我的使用方法以便以后使用 /** * LIST进行分割 * @param list * @param subNum * @param <T> * @return */ public static <T> List<List<T>> s ......
Springboot 方法 LIST

Springboot集成dubbo完整过程(三)

准备工作 1,准备mysql服务环境 2,准备redis服务环境 3,准备zookeeper服务环境 4,准备逆向生成bean的xml配置文件 5,准备slf4j日志xml配置文件 6,准备一个sql脚本 1,搭建创建服务工程 1,创建一个空的父工程,用来统一管理依赖 2,创建一个interface ......
Springboot 过程 dubbo

SpringBoot项目打war包,以及tomcat部署访问404问题

springboot打war包 修改pom文件打包方式 packaging标签由jar改成war,不写默认jar方式 启动类继承SpringBootServletInitializer,重写configure方法 打包 使用maven工具点击package打包,clean是清空target目录。 t ......
SpringBoot 项目 tomcat 问题 404

Springboot集成dubbo完整过程(三)

准备工作 1,准备mysql服务环境 2,准备redis服务环境 3,准备zookeeper服务环境 4,准备逆向生成bean的xml配置文件 5,准备slf4j日志xml配置文件 6,准备一个sql脚本 1,搭建创建服务工程 1,创建一个空的父工程,用来统一管理依赖 2,创建一个interface ......
Springboot 过程 dubbo

SpringBoot项目启动执行任务的几种方式

1、直接在启动类下面调用方法 @SpringBootApplication public class TestApplication { public static void main(String[] args) { SpringApplication.run(TestApplication.cl ......
SpringBoot 任务 方式 项目

Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNot

(1)一开始的时候看到 Cause: java.sql.SQLException: 觉得是sql语句写错了,经过检查sql并没有错误 (2)再次看了下报错,后面还有半句话 Error setting driver on UnpooledDataSource.Cause: java.lang.Clas ......

p6spy 整合springboot

1.导入pom <!-- sql代理拦截,慢sql打印 --> <dependency> <groupId>p6spy</groupId> <artifactId>p6spy</artifactId> <version>3.9.1</version> </dependency> 2.配置自定义日志 ......
springboot p6spy 6spy spy p6

SpringBoot实现文件图片上传并转换为虚拟路径

页面代码 <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form acti ......
SpringBoot 路径 文件 图片

「Solution Set」4.11 小记

P3642 [APIO2016] 烟火表演 我不太会证明凸性。 像这道题就是列出 DP 方程,$f_{u,x}$ 表示以 $u$ 为根的子树还有 $x$ 分钟就全爆炸的最小代价。 然后赌它是个凸函数(( 因为它有 $sum$,就是两个下凸函数相加,还是下凸的。 然后求前缀的最小值再加一个函数一类的, ......
小记 Solution 4.11 Set 11

skywalking 监控 springboot项目

部署探针 打开idea开发工具Run-》Edit Configurations 点击Modify options -》Add VM option -javaagent:E:\projectdeploy\apache-skywalking-apm-9.2.0\apache-skywalking-apm ......
skywalking springboot 项目

set集合(LinkedHashse,Hashset)

set集合的特点: 哈希值: 当链表长度大于8而且数组长度大于等于64,那么链表会自动转化为红黑树 底层原理细节: Hashset的去重原因: Hashset的无索引原因:因为底层是数组+链表+红黑树 Hashset的无序原因:因为它是从0索引查找,如果为null,则跳过,遇到值在打印 linked ......
LinkedHashse Hashset set

Springboot集成dubbo完整过程(三)

准备工作 1,准备mysql服务环境 2,准备redis服务环境 3,准备zookeeper服务环境 4,准备逆向生成bean的xml配置文件 5,准备slf4j日志xml配置文件 6,准备一个sql脚本 1,搭建创建服务工程 1,创建一个空的父工程,用来统一管理依赖 2,创建一个interface ......
Springboot 过程 dubbo

SpringBoot整合ElasticSearch8.x 踩坑记录

背景 jdk版本 openjdk-17 springboot版本 2.6.11 pom.xml <!-- ElasticSearch提供的依赖 --> <dependency> <groupId>co.elastic.clients</groupId> <artifactId>elasticsear ......
ElasticSearch8 ElasticSearch SpringBoot

springboot mybatis 事务管理

本文主要讲述springboot提供的声明式的事务管理机制。 一、一些概念 声明式的事务管理是基于AOP的,在springboot中可以通过@Transactional注解的方式获得支持,这种方式的优点是: 1)非侵入式,业务逻辑不受事务管理代码的污染。 2)方法级别的事务回滚,合理划分方法的粒度可 ......
事务管理 springboot 事务 mybatis

Springboot项目搭建及踩坑

1. 创建项目 **注意:**加载start.spring.io 网址与网络有关,如果网速比较慢的话将无法加载成功,可以考虑换成阿里(比较旧):https://start.aliyun.com **注意:**springboot版本如果3.0以上的,将不支持jdk1.8 如果是新建project的话 ......
Springboot 项目

springboot学习之一(搭建和配置文件)

1.springboot的搭建可以通过网页版,也可以通过idea. 常用的版本构件maven和gradle等 springboot的项目中pom.xml文件(有个父级依赖规定了大部分用到jar的版本),之后只需依赖名称即可. 2.了解配置文件(优先级依次降低) application.propert ......
springboot 文件

自定义SpringBoot Starter

1. Starter加载原理 Springboot通过SpringBootApplication注解启动项目,springboot启动的时候,会将项目中所有声明为bean对象的实例加载到IOC容器。除此之外也会将starter里的bean信息加载到ioc容器,从而做到0配置,开箱即用。 1.1加载s ......
SpringBoot Starter

成品直播源码,Android实现监听Settings值变化的功能

成品直播源码,Android实现监听Settings值变化的功能 先创建一个内部类继承自ContentObserver class SettingsContentObserver extends ContentObserver { public SettingsContentObserver() { ......
成品 源码 Settings Android 功能

SpringBoot---文件上传

静态资源访问 使用IDEA创建SPring Boot项目,会默认创建出classpath:/static/目录,静态资源一般放在这个目录下即可。 如果默认的静态资源过滤策略不能满足开发需求,也可以自定义静态资源过滤策略。 在application.properties中直接定义过滤规则和静态资源位置 ......
SpringBoot 文件

解决NewBing报错【Sorry, looks like your network settings are preventing access to this feature.】

开全局,使用浏览器插件Proxy Switchy Omega进行代理 1、x2ray 软件配置 2、Proxy Switchy Omega 配置 将以下规则加入配置: *.msftconnecttest.com +proxy *.1drv +proxy *.microsoft +proxy *.aa ......
preventing settings NewBing feature network

install vim-latexsuite and set .vimrc

(4/4) 正在安装 vim-latexsuite [#######] 100%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Set the following lines ......
vim-latexsuite latexsuite install vimrc and

Springboot报错:Could not resolve view with name 'index' in servlet with name 'dispatcherServlet'

该异常是因为用定义了带@EnableWebMvc注解的配置类后发生的,在带该注解的配置类中加入下面的代码就可以了: @Bean public InternalResourceViewResolver viewResolver() { InternalResourceViewResolver view ......
dispatcherServlet 39 name with Springboot

SpringBoot线程池和Java线程池的实现原理

使用默认的线程池 方式一:通过@Async注解调用 public class AsyncTest { @Async public void async(String name) throws InterruptedException { System.out.println("async" + na ......
线程 SpringBoot 原理 Java

新建springboot项目初学

一、打开IDEA,file->new->Project,如下图 1、左侧栏,选中:Spring Initializr 2、右侧栏 2.1 Project SDK:选择你电脑安装的JDK版本 2.2 Choose Initializr Service URL Default:默认 Custom:默认u ......
springboot 项目

新建springboot项目

一、打开IDEA,file->new->Project,如下图 1、左侧栏,选中:Spring Initializr 2、右侧栏 2.1 Project SDK:选择你电脑安装的JDK版本 2.2 Choose Initializr Service URL Default:默认 Custom:默认u ......
springboot 项目

什么是Spring、Springboot、Springcloud,他们的优缺点是什么?

1.什么是Spring Spring框架是一个开放源代码的J2EE应用程序框架,由Rod Johnson发起,是针对bean的生命周期进行管理的轻量级容器(lightweight container)。 Spring解决了开发者在J2EE开发中遇到的许多常见的问题,提供了功能强大IOC、AOP及We ......
优缺点 Springcloud Springboot Spring

「Solution Set」4.10 小记

省流:我是废物,别看了,退出去吧。 [ABC275Ex] Monster 我们发现如果要减一次,那么最好是点 $i$ 左右两边能延伸到的最远处都减一下,反正多减不亏。 于是我们建立一棵以下标为顺序的笛卡尔树。 笛卡尔树是以权值建立的大根堆。 笛卡尔树的 $O(n)$ 建立: 用一个栈维护笛卡尔树一直 ......
小记 Solution 4.10 Set 10