springboot错误

SpringBoot的@Autowired和@Resource使用

1、区别 见:https://blog.csdn.net/xhbzl/article/details/126765893 2、使用 2.1、注入配置类 比如注入config的bean @Configuration public class MyThymeLeafConfig { @Resource ......
SpringBoot Autowired Resource

springboot中使用application.properties配置mysql和sqlserver

1.使用依赖 * mysql: <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId></dependency>* sqlserver: <dependency> <groupId>com ......

SpringBoot学习笔记--系列文章

随笔分类 - Spring Boot SpringBoot学习笔记(八)——JWT、(Vue3、Axios、Vue-Router、TypeScript实现授权与验证示例) SpringBoot学习笔记(七)——综合示例BookStore图书管理系统 SpringBoot学习笔记(六)——分页、跨域、 ......
SpringBoot 笔记 文章

SpringBoot/Java中定时请求并根据服务端响应头的date实现本地Windows修改时间/时间同步(管理员权限问题-bat管理员启动cmd并运行jar)

场景 业务场景需要将本地Windows服务器与远端Linux服务器进行时间同步。 但是远端服务器无法进行任何操作,不能进行配置开启ntp等操作。 但是可以知道远端服务器开放的服务,比如远端的业务系统的ip和端口。 那么可以通过请求远端业务系统的服务,并根据响应头的date字段获取远端服务器 的时间, ......
管理员 时间 SpringBoot 权限 Windows

SpringBoot拦截器

在项目的开发中,在某些情况下,我们需要对客户端发出的请求进行拦截,常用的API拦截方式有Fliter,Interceptor,ControllerAdvice以及Aspect。 上面的图是Spring中拦截机制,请求从Filter-->>Controller的过程中,只要在指定的环节出现异常,可以通 ......
SpringBoot

centos上使用makefile编译sliver时 提示gcc 错误,cannot find -ldl cannot find -lpthread cannot find -lc

github.com/bishopfox/sliver/server /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/bin/ld: cannot find -ldl /usr/bin/l ......
cannot find makefile lpthread 错误

SpringBoot —— 后端操作实现

后端实现步骤(java) 一、表示层(controller)1、StudentController返回结果Result(vo) 二、业务层(service)2、StudentService3、StudentServiceImpl 三、持久层(mapper)4、StudentMapper 四、启动(同 ......
SpringBoot

SpringBoot(10.1) -- AOP

SpringBoot的AOP的2种实现方式 基于Spring的AOP写法 spring.aop.auto=true # 是否启用aopspring.aop.proxy-target-class=false # 代理方式有接口使用jdk动态代理,如果没有接口使用cglib代理 基于SpringBoot ......
SpringBoot 10.1 AOP 10

SpringBoot使用EasyExcel将Excel数据直接转换为类对象

背景 相比于读取excel到List<List<String>>对象中,抽象一个方法将excel数据直接一步读取到指定的类对象中,更为方便。 代码 通过类Class读取excel数据到对象 /** * 使用Class来读取Excel * * @param inputStream Excel的输入流 ......
SpringBoot EasyExcel 对象 数据 Excel

SpringBoot整合Mybatis-Plus分页

创建MP的配置类 package com.feiyu.common.config.mp; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.autoconfigure.Configur ......
Mybatis-Plus SpringBoot Mybatis Plus

SpringBoot整合knife4j

● knife4j是一个集 Swagger2和PoenApi为一体的增强解决方案 导入依赖 <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> ......
SpringBoot knife4j knife4 knife 4j

springboot(9) -- jdbc

sprinboot操作mysql 数据库,首先添加dependence,springboot自带数据库连接池,这里demo则是另外使用阿里的druid <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache ......
springboot jdbc

ASCOM开发下的库错误

不要用到示例的dll了... 里面是有readme写的很清楚, 如果报5.5版本不兼容6.0那多半是这个原因 缺少ASCOM.Interfaces 项目里引入下面的代码,直接找还真找不到... <Reference Include="ASCOM.Interfaces"> <HintPath>C:\W ......
错误 ASCOM

SpringBoot入门案例后的4个问题

1. 我们的工程在引入`spring-boot-starter-web`依赖的时候,为什么没有指定版本 版本锁定 我们的项目继承了spring-boot-starter-parent父工程,它内部的父工程spring-boot-dependencies已经锁定了部分依赖的版本号,因此自己创建工程中无 ......
SpringBoot 案例 问题

SpringBoot+Prometheus+Grafana实现应用程序可视化监控

1、SpringBoot应用暴露监控指标 maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependen ......

SpringBoot pdf打印及预览(openhtmltopdf+freemarker)

SpringBoot pdf打印及预览(openhtmltopdf+freemarker) 添加依赖 openhtmltopdf+freemarker <properties> <openhtml.version>1.0.10</openhtml.version> </properties> <!- ......
openhtmltopdf SpringBoot freemarker pdf

git commit错误 error: bad signature 0x00000000 fatal: index file corrupt

git commit错误 error: bad signature 0x00000000 fatal: index file corrupt 这个错误信息表明您的 git 仓库中的索引文件已损坏。修复此问题的一种方法是删除索引文件并重置它。您可以在仓库的根目录中运行以下命令: rm -f .git/ ......

SpringBoot2原理篇-黑马

原理篇 1 自动配置 1.1 bean 的加载方式【一】 1 自动配置 1.1 bean 的加载方式【一】 1.1.1 环境准备 创建一个新的工程模块【Maven 的,不是SpringBoot 的】 直接创建 一个全新的Maven 工程 【添加坐标】 <dependencies> <dependen ......
黑马 SpringBoot2 SpringBoot 原理

【SpringBoot】【配置加载】 SpringBoot配置加载解析时机原理

1 前言 不知道大家对于配置文件的加载有没有考虑过是什么时候加载解析的,这节我们就来看看。 2 执行入口 我们就先来看看加载配置的入口,核心类就是 ConfigFileApplicationListener主要作用就是读取应用的配置文件并add到Environment的PropertySources ......
SpringBoot 时机 原理

pom非常好用的写法,统一管理springboot有关依赖的版本

相信大家使用maven的时候,每引用一个依赖都要写一遍版本号,当然这是必要的,现在springboot非常的主流,每个springboot有关的依赖的版本又是一至的 我们大家就不需要重新去再写一遍了,可以引入依赖 spring-boot-dependencies,这样后面所有的有关springboo ......
写法 springboot 版本 pom

点击头像上传; post上传文件错误小记

点击头像上传; post方式上传文件错误小记 因为之前踩过这个坑所以记录一下, 避免以后忘记 1. 上传报错的问题 首先要实例化一个对象; 总是会忘记 这里的this指向监听元素节点; 重点在于容易忘记this.files是一个数组; 一定要取出来 let fd = new FormData() l ......
小记 头像 错误 文件 post

SpringBoot+Redis+自定义注解实现接口防刷(限制不同接口单位时间内最大请求次数)

场景 SpringBoot搭建的项目需要对开放的接口进行防刷限制,不同接口指定多少秒内可以请求指定次数。 比如下方限制接口一秒内最多请求一次。 注: 博客: https://blog.csdn.net/badao_liumang_qizhi 实现 1、实现思路 首先自定义注解,添加时间区间和最大请求 ......
接口 注解 SpringBoot 次数 单位

CMake报告:Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)错误

原因是电脑缺少pkg-config库 Linux可以直接apt-get即可: sudo apt-get install pkg-config 下面详细说一下Windows如何手动安装: 转到http://ftp.gnome.org/pub/gnome/binaries/win32/dependenc ......

C++异常和错误处理机制:如何使您的程序更加稳定和可靠

在C++编程中,异常处理和错误处理机制是非常重要的。它们可以帮助程序员有效地处理运行时错误和异常情况。本文将介绍C++中的异常处理和错误处理机制。 什么是异常处理? 异常处理是指在程序执行过程中发生异常或错误时,程序能够捕获并处理这些异常或错误的机制。例如,当程序试图访问一个未初始化的指针或除以零时 ......
机制 错误 程序

pycurl 错误代码3

Fatal exception: Pycurl error 3 · Issue #138 · xmendez/wfuzz · GitHub 总结就是输入的url 格式错误 或者说你输入的url格式人家不认可 会出现错误代码3 那么 这公开的api没办法调用? ......
错误 代码 pycurl

MySQL(二十二)其他数据库日志(一)通用查询日志和错误日志

MySQL(二十二)其他数据库日志(一)通用查询日志和错误日志 1 MySQL支持的日志 1.1 日志类型 慢查询日志:记录执行时间超过long_query_time的所有查询,方便我们对查询进行优化 通用查询日志:记录所有连接的起始和终止时间,以及连接发送给数据库的所有指令,对复原操作的实际场景、 ......
日志 错误 数据库 数据 MySQL

解决Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource数据源无法连接 springboot项目无法启动的问题

<groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.13</version> </dependency> 开始没有制定版本 报错换成了8.0版本,依旧报错 看了下配置文件 没有问题 查 ......

springboot alibaba druid数据库连接池配置,输出可执行sql

# 数据源配置 spring: datasource: type: com.alibaba.druid.pool.DruidDataSource druid: # 初始连接数 initialSize: 5 # 最小连接池数量 minIdle: 2 # 最大连接池数量 maxActive: 50 # ......
springboot alibaba 数据库 数据 druid

Springboot创建多module项目--转载

1)create new project ( 或 File --> new --> project) 2)选中Spring Initializr ,点击Next image.png 3)填写必要信息,点击Next image.png 4)依赖页不用勾选,点击Next image.png 5)选择项目 ......
Springboot 项目 module

Springboot-hbase增删改20230509

1、启动 2、ZK客户端 3、springboot+hbase实例 1)、pom <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</ ......
Springboot-hbase Springboot 20230509 hbase