springboot systempath jar fat

SpringBoot(四)

4.数据层解决方案 4.1SQL ①数据源技术 springboot提供了3款内嵌数据源技术 HikariCP 这是springboot官方推荐的数据源技术,作为默认内置数据源使用。 不配置数据源,那就用这个。 Tomcat提供DataSource web技术导入starter后,默认使用内嵌tom ......
SpringBoot

idea maven 添加jar包

集成 海康威视 artemis-http-client-1.1.8.jar 打包时报错,发现是maven中心仓库没有1.1.8版本。 于是自己添加: 参考链接:https://www.cnblogs.com/scode2/p/16965288.html 1、在pom.xml统计目录下添加lib文件夹 ......
maven idea jar

SpringBoot - 整合MyBatis

SpringBoot整合MyBatis 1、环境搭建 1、新建项目 2、导入依赖 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> ......
SpringBoot MyBatis

SpringBoot - 整合数据源

整合JDBC 1、新建项目 单击Create之后等待加载(自动导入)完成 2、新建application.yaml配置文件 创建文件 编写配置文件 spring: datasource: username: root password: 123456 url: mysql:jdbc://localh ......
数据源 SpringBoot 数据

SpringBoot - Web开发

SpringBoot Web开发 自动装配 SpringBoot到底帮我们配置了什么?我们能不能进行修改?能修改那些东西?能不能扩展? xxxAutoConfiguration...向容器中自动配置组件 xxxProperties:自动配置类,装配配置文件中自定义的一些内容 web开发要解决的问题: ......
SpringBoot Web

SpringBoot - 多环境配置及配置文件位置

配置文件位置 file:./config/ file:./ classpath:/config/ classpath:/(默认配置文件位置) 优先级依次:1 > 2 > 3 > 4 properties格式文件,选择激活配置文件 新建配置文件 配置application-test.propertie ......
SpringBoot 位置 环境 文件

🍍踩坑:SpringBoot打jar包运行出现错误(没有主清单属性)

我是使用Spring Initializr创建的SpringBoot项目,下面看下给我自动生成的pom文件: <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> ......
SpringBoot 清单 属性 错误 127821

easypoi基于springboot实现多sheet导出

maven <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-spring-boot-starter</artifactId> <version>4.4.0</version> </dependency> service ......
springboot easypoi sheet

springboot自动装配

原理 spring通过属性加载器将starter依赖包中META-INF目录下spring.factories文件里key=org.springframework.boot.autoconfigure.EnableAutoConfiguration对应value加载进来, 然后通过反射实例化并注入到 ......
springboot

jar包替换路径

解决jar冲突解决方法之一 java -jar jarjar-1.4.jar process rule.txt 需替换的.jar 替换后.jar rule com.jacob.** com.yjy.jacob.@1 rule 原包 新包 文件下载 https://wwo.lanzouy.com/iF ......
路径 jar

day12-SpringBoot数据库操作

SpringBoot数据库操作 1.JDBC+HikariDataSource 在SpringBoot 2.x项目中,默认使用Hikari连接池管理数据源。相比于传统的 C3P0 、DBCP、Tomcat jdbc 等连接池更加优秀。 当项目pom.xml引入spring-boot-starter- ......
SpringBoot 数据库 数据 day 12

SpringBoot集成海康网络设备SDK

SDK介绍 概述 设备网络SDK是基于设备私有网络通信协议开发的,为嵌入式网络硬盘录像机、NVR、网络摄像机、网络球机、视频服务器、解码器、报警主机、网络存储等产品服务的配套模块,用于远程访问和控制设备软件的二次开发。 功能 图像预览, 文件回放和下载, 云台控制, 布防/撤防, 语音对讲, 日志管 ......
网络设备 SpringBoot 设备 网络 SDK

springboot配置ActiveMQ

@Configuration public class ActiveMQConfig { @Bean public JmsTemplate jmsTemplate(ConnectionFactory connectionFactory) { JmsTemplate jmsTemplate = new ......
springboot ActiveMQ

16-springboot关于输出日志的修改

关闭spring logo图标 日志输出: SpringApplication springApplication = new SpringApplication(SpringBootConsoleApplication.class); springApplication.setBannerMode ......
springboot 日志 16

17-springboot整合第三方框架三部曲

一个规律,那就是springboot整合第三方框架或组件,都是通过三步来完成: 第一步:添加依赖; 第二步:配置application.properties文件; 第三步:编写代码,可能用到一些注解; ......
三部曲 第三方 springboot 框架 17

15-springboot创建非web应用

在 Spring Boot 框架中,要创建一个非Web应用程序(纯Java程序): 方式一: 1、SpringBoot开发纯Java程序,应该采用如下的起步依赖: <!-- Springboot开发java项目的起步依赖 --> <dependency> <groupId>org.springfra ......
springboot web 15

springBoot,springCode项目 java 读取Excel 文件操作

导入的文件 前端点击上传得到文件(MultipartFile file 【这里是存放的临时文件】) 本人前端用的vue3,elementui, 导入按钮代码 <!--导入文件 --> <el-col :span="1.5"> <el-button type="info" plain icon="el ......
springBoot springCode 文件 项目 Excel

apifox脚本调用jar包

前言 最近在工作中使用apifox作为协同开发工具,感受还是很不错的,而且中文的文档可读性也很好。其中自定义脚本可以节省很多工作量,但是作为一个java开发,对于其他语言确实不熟,apifox的脚本引擎又是基于Javascript的,用起来不是那么地丝滑,好在是支持脚本调用其他语言的,其中就支持调用 ......
脚本 apifox jar

14-springboot配置文件

1、.properties文件 键值对的properties属性文件配置方式 SpringBoot默认读取该文件作为项目配置文件 2、.yml文件 yml 也是一种配置文件格式,主要采用空格、换行、冒号等格式排版进行配置; yml 后缀也可以使用 yaml 后缀; 配置的值与前面的冒号必须要有一个空 ......
springboot 文件 14

Springboot 撞上 NebulaGraph——NGbatis 初体验

NGbatis 是一款针对 NebulaGraph + Spring Boot 的数据库 ORM 框架。借鉴于 MyBatis 的使用习惯进行开发。包含了一些类似于 mybatis-plus 的单表操作,另外还有一些图特有的实体-关系基本操作。 ......
NebulaGraph Springboot NGbatis

springboot应用瘦身

1、将依赖的jar包存放到其他路径 mvn dependency:copy-dependencies -DoutputDirectory=lib_path -DincludeScope=runtime 2、在pom文件添加插件属性属性 <plugin> <groupId>org.springfram ......
springboot

dockerfile部署vue+springboot+redis

后端部署: 一、拉取并启动redis镜像 1、在服务器/usr/local/etc/redis/文件目录下建立redis.conf配置文件,配置信息如下: bind 0.0.0.0 protected-mode no 2、拉取并启动最新的redis镜像,映射宿主机端口并挂载目录 docker run ......
dockerfile springboot redis vue

SpringBoot 集成 Security

SpringBoot 集成 Security Spring Security 介绍 Spring Security 是基于 Spring 框架的权限管理框架 Spring Security 的前身是 Acegi Security Acegi Security 以配置繁琐而被诟病,投入 Spring ......
SpringBoot Security

java -jar 启动设置参数的三种方式

java -jar 参数前后位置说明springboot项目启动的时候可以直接使用java -jar xxx.jar这样。下面说说参数的一些讲究 1.-DpropName=propValue的形式携带,要放在-jar参数前面(这样的配置是修改的jvm参数) eg:java -Dxxx=test -D ......
参数 方式 java jar

SpringBoot整合Spring Security (一,基于数据库的登录认证)

SpringBoot整合Spring Security (一,基于数据库的登录认证) 一、基本环境准备 1、数据库表设计 登录认证一般涉及到三张表:用户表、角色表、用户角色中间表。 /* Navicat MySQL Data Transfer Source Server : localhost So ......
SpringBoot Security 数据库 数据 Spring

自己动手从零写桌面操作系统GrapeOS系列教程——22.文件系统与FAT16

学习操作系统原理最好的方法是自己写一个简单的操作系统。 新买的硬盘和优盘在第一次使用时需要格式化,有时候还需要分区。这是为什么呢?分区和格式化到底是干啥呢?本讲将为大家解开这些疑惑。 一、文件系统 1.分区 首先说一下分区,我们平时看到的C盘、D盘等就是一个个分区。硬盘第一个扇区的一部分固定空间叫做 ......
系统 桌面 GrapeOS 文件 教程

day11-SpringBoot中注入Servlet&Filter&Listener

SpringBoot中注入Servlet&Filter&Listener 1.基本介绍 文档:SpringBoot中注入Servlet&Filter&Listener 考虑到实际开发业务非常复杂和兼容问题,SpringBoot支持将Servlet、Filter、Listener注入spring容器中 ......
SpringBoot amp Listener Servlet Filter

Redis在springboot的应用场景

场景一:出入库存量——分布锁 锁是共享的 Callable回调返回结果会抛出异常。Runable不会抛出异常 k打进去==能获取到锁 自定义线程 mysql并发超过2000就会跟慢,要把压力传给给Redis。这样的场景有秒杀、 场景二:秒杀 lua脚本是将string转换成二进制。转换成二进制之前, ......
springboot 场景 Redis

SpringBoot 常见小问题

经Nginx反向代理后request.getScheme()获取不到https 解决步骤如下: 在Nginx中设置请求头 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded ......
SpringBoot 常见 问题

SpringBoot整合第三方技术

整合JUnit 名称:@SpringBootTest类型:测试类注解位置:测试类定义上方作用:设置JUnit加载的SpringBoot启动类范例: @SpringBootTest(classes = Springboot07JunitApplication.class)class Springboo ......
第三方 SpringBoot 技术