Spring Boot
明耀
我只是这世间闪过的一秒,在这一刹那之间,我明白了,,,,,,,,,,,,,,,
展开
-
Springboot集成emqx
【代码】Springboot集成emqx。原创 2023-01-02 16:32:58 · 1128 阅读 · 1 评论 -
批量删除前后端操作
batchDeleteClick() { if (this.checkRows.length == 0) return; this.$confirm('此操作将永久删除选中记录, 是否继续?', '温馨提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { var borrowRecordIdList = [];原创 2022-05-12 19:38:21 · 446 阅读 · 0 评论 -
mybatis-plus 多数据源配置
参考:MybatisPlus 配置多源数据库<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.37</version> <scope>runtime</scope>原创 2022-05-10 10:48:06 · 798 阅读 · 0 评论 -
Centos7安装RabbitMQ详细教程
转载:Centos7安装RabbitMQ详细教程 MQ引言 什么是MQ MQ:message Queue翻译为消息队列,通过典型的生产者和消费者模型不断向消息队列中生产消息,消费者不断从队列中获取消息。因为消息的生产和消费都是一部的,而且只关心消息的发送和接收,没有业务逻辑转载 2021-10-31 17:39:39 · 2769 阅读 · 0 评论 -
SpringBoot 操作excel
<!-- poi --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.9</version> </dependency> @Req...原创 2021-06-01 09:59:15 · 613 阅读 · 0 评论 -
SpringBoot 集成 Mqtt
<!--mqttv3依赖--> <dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv3</artifactId> <version>1.2.2</version> </depen原创 2021-02-27 11:30:15 · 452 阅读 · 2 评论 -
基于Springboot实现Mqtt
转载:基于Springboot实现MqttJava端开发:pom.xml:<!--mqttv3依赖--><dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv3</artifactId> <version>1.2.2</version></depen转载 2021-02-27 10:49:48 · 1693 阅读 · 1 评论 -
mybatis 返回的对象包含集合
DeviceQuestionInstruction.javaimport com.hikari.cloud.data.entity.TbInstruction;import lombok.Data;import java.util.Date;import java.util.List;@Datapublic class DeviceQuestionInstruction {//tb_instruction 使用说明表 private String dvqsTitle; p原创 2021-01-13 15:56:31 · 1693 阅读 · 0 评论 -
SpringBoot https
AllServiceApplication.javapublic class AllServiceApplication implements CommandLineRunner { private Logger logger = LoggerFactory.getLogger(this.getClass()); public static void main(String[] args) { SpringApplication.run(AllServiceApplic原创 2020-12-31 09:00:00 · 85 阅读 · 0 评论 -
SpringBoot文件预览
NonStaticResourceHttpRequestHandler.javaimport org.springframework.core.io.FileSystemResource;import org.springframework.core.io.Resource;import org.springframework.stereotype.Component;import org.springframework.web.servlet.resource.ResourceHttpReque原创 2020-12-23 10:26:49 · 558 阅读 · 0 评论 -
SpringBoot+Netty (2)
<!-- netty依赖 springboot2.x自动导入版本 --> <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> </dependency>public class AllServiceApplication imp...原创 2020-11-14 17:52:28 · 222 阅读 · 0 评论 -
uniapp unipush
// #ifdef APP-PLUS CommonUtils.bindPushAlias(); const _self = this; // const _handlePush = function(message) { // /** // * 通过 vuex 来同步页面的数据,仅做演示。 // * 实际开发中,这里可能是跳转到某个页面等操作,请根据自身业务需求编写。 // */ // _self.updateP原创 2020-09-07 09:54:11 · 418 阅读 · 0 评论 -
云通讯 发送短信模板代码
package com.mingshine.fireext.mina.utils;import com.cloopen.rest.sdk.BodyType;import com.cloopen.rest.sdk.CCPRestSmsSDK;import java.util.HashMap;import java.util.Set;public class MessageUtils { public static boolean sendMessage(String mobile, S原创 2020-09-04 22:03:46 · 582 阅读 · 0 评论 -
mybatis 分页工具 pagehelper
<!-- mybatis 分页工具--> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.10</version>原创 2020-08-20 21:54:02 · 190 阅读 · 0 评论 -
发送邮箱
IMAP/SMTP服务需要开启 <!-- 邮箱--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency>package com.wolfedu.clo原创 2020-08-01 16:20:09 · 244 阅读 · 0 评论 -
Springboot多模块打包
子模块必须是jar才行 <packaging>jar</packaging>子模块打包添加下面的打包配置<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo.原创 2020-06-12 14:50:45 · 272 阅读 · 0 评论 -
SpringBoot启动出现java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.37</version> <scope>runtime</scope> </dependency>切记:在主要操作模块上,也要加上这个依赖,不然会有两个mysql.原创 2020-05-19 09:38:16 · 503 阅读 · 0 评论 -
SpringBoot+Netty
转载:Springboot+Netty搭建基于TCP/IP协议的服务端(一) <!-- netty依赖 springboot2.x自动导入版本 --> <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> </dependency>NettyApplication.javapackage com.m转载 2020-05-14 13:10:35 · 1313 阅读 · 0 评论 -
springboot swagger2
转载:Spring Boot Swagger2生成接口文档pom.xml<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <!-- 网站依赖http://localhost:转载 2020-05-14 11:14:56 · 114 阅读 · 0 评论 -
SpringBoot整合Elasticsearch
<!-- elasticsearch--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </depe...原创 2020-05-06 13:29:53 · 137 阅读 · 0 评论 -
LCN框架解决分布式事务-服务端配置
执行sql语句 添加数据库tx-manager.sql/* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 100309 Source Host : localhost:3306 ...原创 2020-04-27 11:07:03 · 273 阅读 · 1 评论 -
xxl-job 任务调度使用
服务端application.properties客户端pom.xml<!-- xll-job--> <dependency> <groupId>com.xuxueli</groupId> <artifactId>xxl-job-core</artif...原创 2020-04-25 11:13:31 · 544 阅读 · 0 评论 -
配置中心使用Apollo使用
window下使用服务端使用git 运行http://localhost:8070/登录新建客户端客户端使用pom.xml<!-- apollo 携程apollo配置中心框架 --> <dependency> <groupId>com.ctrip.framework.apollo</group...原创 2020-04-10 15:36:49 · 287 阅读 · 0 评论 -
SpringBoot 打包war并且部署在tomcat
<packaging>war</packaging><!-- war打包使用,无需使用固定版本tomcat,本地启动主方法时注意需要注释此依赖包 --> <dependency> <groupId>org.springframework.boot</groupId> ...原创 2020-04-12 13:27:48 · 98 阅读 · 0 评论 -
springboot打包 jar 并且运行
pom.xml <packaging>jar</packaging> <build> <finalName>cloud-server</finalName> <plugins> <plugin> <groupI...原创 2019-10-29 14:01:36 · 152 阅读 · 0 评论 -
springboot 多模块依赖打包
被依赖的model 需要配置<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <...原创 2019-11-19 17:20:06 · 1165 阅读 · 0 评论 -
Spring Boot Admin 搭建
cloud-admin-ui(服务端)pom.xml<dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId> &...原创 2020-04-10 14:12:40 · 183 阅读 · 0 评论 -
Springboot 项目整合集成 xxl-job ,xxl-job在Springboot 项目上的使用
转载:Springboot 项目整合集成 xxl-job ,xxl-job在Springboot 项目上的使用 XXL-JOB 是一个开...转载 2020-03-12 14:26:29 · 5612 阅读 · 1 评论