E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
SpringBoot2.X
Springboot2.x
使用feign优雅调用跨项目接口
1.首先实现server项目,提供数据接口pom.xml4.0.0org.springframework.bootspring-boot-starter-parent2.3.1.RELEASEcom.frankfeign-server0.0.1-SNAPSHOTfeign-serverDemoprojectforSpringBoot1.8org.springframework.bootspring
小石潭记丶
·
2020-08-14 18:16
springboot
feign
SprinBoot2.x 整合 Redis
【简介】
SpringBoot2.x
整合Redis的demo,并没有整合数据库和mybatis等【本文Demo】https://github.com/qidasheng2012/springboot2.x_redis
齐大圣2012
·
2020-08-14 18:05
Redis
SpringBoot
Spring Cloud 集成 Hystrix Dashboard 仪表盘问题汇总
【注】出现问题的版本在
SpringBoot2.x
以上,1.x的仅供参考,一般出问题都是第三种类型1.使用feign调用的服务,需要设置hystrisfeign:hystrix:enabled:true即可
一只奋斗的猪
·
2020-08-14 18:12
SpringBoot
SpringCloud
SpringCloud-Finchley.SR1版本中 hystrix-dashboard 报错 /actuator/hystrix.stream 404 Not Found
中使用hystrix-dashboard进行监控的时候启动报错”path”:”/actuator/hystrix.stream”,”status”:404,”error”:”NotFound”这是因为
springboot2
luckykapok918
·
2020-08-14 17:07
SpringCloud
springboot2.x
mybatis多数据源实现
springboot版本:2.1.1.RELEASE启动日志:运行日志:附上配置信息server.port=8001server.servlet.context-path=/dev#数据源配置(默认)#useSSL=falseMySQL在高版本需要指明是否进行SSL连接(不加第一次连接数据库会有警告信息)spring.datasource.driver=com.mysql.cj.jdbc.Driv
烟光凝而
·
2020-08-14 17:43
java
hystrix dashboard Unable to connect to Command Metric Stream 的解决办法
将这个项目连接到我的另一个springCloud项目里,却报错:UnabletoconnecttoCommandMetricStream在网上搜索发现一种解决方法说,“如果使用的是
springBoot2
guile
·
2020-08-14 16:29
java
java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.ObjectMapp
springboot2.X
整合mybatisplus3.X坑系列解决办法:引入以下依赖com.fasterxml.jackson.corejackson-databind自己喜欢,切合版本重点:解决此类问题的有效方法
快乐小咸鱼007
·
2020-08-14 16:23
java
mybatis
plus
springboot
mybatis
Springboot2.x
整合mybatis + Druid, 配置Druid数据源监控
1.引入jar包org.mybatis.spring.bootmybatis-spring-boot-starter1.3.2org.springframework.boot spring-boot-starter-jdbccom.alibabadruid-spring-boot-starter${springboot.druid.version}com.oracleojdbc6${oracle.
不写BUG的瑾大大
·
2020-08-14 16:27
JAVA基础
Unable to connect to Command Metric Stream.使用Hystrix-dashboard监控不到状态数据问题(
springBoot2.x
以上版本)
UnabletoconnecttoCommandMetricStream.使用Hystrix-dashboard监控不到状态数据问题(
springBoot2.x
以上版本)
springBoot2.x
以上的配置发生了变化
小哈士奇��
·
2020-08-14 15:20
个人
SpringBoot2.x
防重复提交token(注解方式)
【简介】在开发过程中经常需要做防止重复提交处理,例如:下订单,保存信息等等前端处理思路:点击按钮后,立即将按钮置灰且不可使用,然后调用处理逻辑接口,当接口有响应后重新使按钮重新亮起可用后端处理思路:思路一、建立数据库唯一索引,通过数据库唯一索引,保证数据唯一思路二、通过token方式,调用业务接口前先调用接口获取token,调用业务接口时传入token,先进行token校验和处理,当token正确
齐大圣2012
·
2020-08-14 15:33
SpringBoot
spring boot 2.x 配置数据源hikariCP和druid
hikariCP从
springboot2.X
版本起,默认的数据连接池就改成了hikariCP。hikariCP的性能及其优异,hikariCP号称java平台最快的数据库连接池。
阿琪琪琪
·
2020-08-14 15:19
spring
boot
spring boot 2.x 接口参数统一校验
如何实现自定义拦截器请参考
springboot2.x
简单实现自定义拦截器publicbooleanpreHandle(HttpServletRequestrequest,HttpServletResponseresponse
阿琪琪琪
·
2020-08-14 15:18
spring
boot
SpringBoot2.x
入门教程之引入jdbc模块与JdbcTemplate简单使用方法
前提这篇文章是《
SpringBoot2.x
入门》专辑的第7篇文章,使用的SpringBoot版本为2.3.1.RELEASE,JDK版本为1.8。
·
2020-08-14 10:22
SpringBoot2.x
系列教程(九)基于Postman的RESTful接口调用
使用SpringBoot开发Web项目一般有两种类型,一种是传统的前后端在同一个项目(jsp、freemarker等),一种是前后端分离的项目(API形式,包括APP)。本篇文章基于API形式的接口调用来介绍Postman这款工具的使用。Postman除了提供模拟Http请求之外,还提供了很多高级功能,比如:自动化测试、auth认证、js脚本及生成各类语言代码等。这里我们仅以基础功能来进行讲解,关
二师兄-公众号-程序新视界
·
2020-08-14 08:51
springboot2.x
整合mybatis-plus,mysql实现多数据源
怎么新建springboot项目我在这里就不介绍了,首先我们先来看一下需要引入哪些主要的jar1:pom.xml4.0.0org.springframework.bootspring-boot-starter-parent2.1.7.RELEASEcom.exampledome0.0.1-SNAPSHOTdomeDemoprojectforSpringBootUTF-8UTF-81.81.1.28
蚂蚁-呀嘿
·
2020-08-14 07:24
springboot
Mysql
多数据源
springboot2.x
连接postgresql数据库报错: org.postgresql.jdbc.PgConnection.createClob() 方法尚未被实作
参考文章:这个org.postgresql.jdbc.PgConnection.createClob()方法尚未被实作使用Springboot连接两个数据库进行配置操作时候报这样的错误:java.lang.reflect.InvocationTargetException:nullatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod
风情客家__
·
2020-08-14 07:15
springboot
postgresql
Spring Boot Actuator将监控指标导出到InfluxDB和Prometheus
SpringBootActuator是
SpringBoot2.x
发布后修改最多的项目之一。
杭州李太白
·
2020-08-14 06:29
JAVA异常:java.lang.AbstractMethodError: ...tomcat.websocket.server.WsSessionListener.sessionCreated
org.apache.tomcat.websocket.server.WsSessionListener.sessionCreated异常原因解决方案更改tomcat版本为8.5.37最近在开发oauth2的时候,发现了这个异常异常原因
SpringBoot2
土豆沒加
·
2020-08-14 06:19
异常解决
spring5/springboot2源码学习 -- xml文件的解析
在如今的spring5.x版本已经
springboot2.x
版本中,xml已经不再是唯一的配置手段了,甚至已经不再是推荐的手段。
pumpkin_pk
·
2020-08-13 23:26
spring
深度解析
SpringBoot2.x
整合Spring-Data-Redis
准备工作准备一个
springboot2.x
的工程,并引入web和spring-data-redis的starter,再引入对象池commons-pool2的依赖。
花 45919377
·
2020-08-13 22:42
SpringBoot2.X
学习第十三课(SpringBoot全局异常处理)
在项目开发过程中难免遇到异常,如果不进行处理的话直接返回给前端的话就会非常不友好,这里我们就进行SpringBoot异常处理的讲解,官方文档:https://docs.spring.io/spring-boot/docs/2.1.0.BUILD-SNAPSHOT/reference/htmlsingle/#boot-features-error-handling一.全局异常处理首先我们先制造一个异
泼墨画丹青
·
2020-08-13 17:39
springboot
spring-boot学习:十五、spring-boot集成thymeleaf
springboot2.x
和spring5.x不再支持velocity,推荐使用thymeleaf,原因是velocity更新太慢或太少,社区不够活跃。
Kevin.Y.K
·
2020-08-13 10:59
spring-boot
spring-boot学习:十七、spring-boot集成redis
在springboot1.x中默认使用Jedis,而在
springboot2.x
中默认使用lettuce。为什么使用lettuce替换jedis呢?
Kevin.Y.K
·
2020-08-13 09:21
spring-boot
基于
SpringBoot2.X
的微服务架构,整合Eureka注册中心、Config配置中心、Bus消息总线、Hystrix熔断、Turbine聚合监控、Zipkin服务跟踪
基于
SpringBoot2.X
的微服务架构,整合Eureka注册中心、Config配置中心、Bus消息总线、Hystrix熔断、Turbine聚合监控、Zipkin服务跟踪Eureka注册中心引入依赖定义配置文件定义启动引导类运行启动类
喝酸奶的小睿睿
·
2020-08-12 18:51
SpringBoot
SpringCloud
Hystrix
Config
Zipkin
SpringBoot2.X
,整合JPA 返回视图对象转json报错, SyntaxError: JSON.parse: unexpected character at line 1 column 1
SpringBoot2.X
,整合JPA返回视图对象转json报错,SyntaxError:JSON.parse:unexpectedcharacteratline1column1oftheJSONdata
`大海`
·
2020-08-12 18:37
SpringBoot
无意间发现一个好用的视频转换gif图片的开源框架
知识改变命运,撸码使我快乐,2020继续游走在开源界点赞再看,养成习惯给我来个Star吧,点击了解下基于SpringBoot的组件化接口服务落地解决方案推荐阅读
SpringBoot2.x
教程汇总简介Gifify
恒宇少年
·
2020-08-12 18:18
java
python
linux
大数据
github
GitHub Actions使用入门
知识改变命运,撸码使我快乐,2020继续游走在开源界点赞再看,养成习惯给我来个Star吧,点击了解下基于SpringBoot的组件化接口服务落地解决方案推荐阅读
SpringBoot2.x
教程汇总简介GitHubActions
恒宇少年
·
2020-08-12 18:18
java
github
spring
boot
spring
git
RedisTemplate lettuce 实现分布式锁
springboot2.x
以上使用redis时,默认使用了lettuce封装,比起jedis线程安全importlombok.extern.slf4j.Slf4j;importorg.springframework.data.redis.connection.RedisStringCommands
xiehdsoo
·
2020-08-12 16:03
工具类
springboot
Springboot整合Redis及序列化问题
org.springframework.bootspring-boot-starter-data-redis2.0.3.RELEASE2.application.yml配置Lettuce和Jedis都是连接redis-server的client,springboot1.5x默认客户端使用jedis,
springboot2
可爱徐叔叔
·
2020-08-12 13:46
Springboot
Spring Boot笔记-新增嵌入式tomcat配置(修改tomcat中conf/server.xml)
这里以
springboot2.x
为例这里我直接贴代码,设置2个头,一个是X-Forwarded-For一个是X-Forwarded-Proto及将头设置为https。
IT1995
·
2020-08-12 12:39
Java
我的Java地带
Spring
Boot
java
spring
spring
boot
SpringBoot2.x
系列教程(五十二)Spring Boot基于SpringSecurity设置swagger2访问权限
前面我们学习了SpringBoot集成swagger2的具体操作,但swagger2默认是没有权限控制的,也就是说如果是在内网还好,要是在公网上使用,那么对应接口文档信息将出现安全问题。这篇文章我们就结合SpringBoot中SpringSecurity来进行设置,让通过swagger2生成的接口文档也拥有访问权限,并且不影响其他业务的正常使用。SpringSecurity目前Web开发常用的两个
二师兄-公众号-程序新视界
·
2020-08-11 19:56
Springboot
springboot2.x
的oauth2 jwt认证,实现普通用户和微信小程序用户登陆
oauth2认证服务网上很多都是基于是spring原有认证,无法实现小程序认证,于是乎改写了部分代码。当然,也可以添加手机验证码登陆,有兴趣的可以参照现有代码来实现。基于springboot的oauth2jwt,使用私钥进行加密,token信息保存在redis中。用户密码加密方式SCryptPasswordEncoder。源码:https://github.com/aLiang-xyl/oauth
阿良~
·
2020-08-11 17:25
springboot
oauth2
jwt
SpringBoot2.X
版本使用druid连接池报ClassNotFound异常原因及解决办法
SpringBoot2.0以上版本删除了RelaxedDataBinder相关类(详情可以自行百度),使用druid连接池时如果使用较低版本,例如com.alibabadruid-spring-boot-starter1.1.0会报异常java.lang.ClassNotFoundException:org.springframework.boot.bind.RelaxedDataBinder所以
最笨的聪明蛋
·
2020-08-11 16:17
SpringBoot
Spring Security学习路径(含认证、授权、OAuth2.0与Reactive Spring Security)
基础
SpringBoot2.x
实战77-SpringSecurity1-SpringBoot下的SpringSecurity(自动配置)与Web安全配置
SpringBoot2.x
实战78-SpringSecurity2
汪云飞记录本
·
2020-08-11 15:40
Spring
Boot2.x实战全集
spring
security
oauth2.0
reactive
SpringBoot2.X
整合Redis实现简单缓存操作
文章包含项目全部文件代码:pom文件application.propertis配置文件SpringBoot启动类Redis配置类Controller测试类一、pom文件web依赖,非必须做测试使用。4.0.0com.xiaohuizklockdemo1.0-SNAPSHOTorg.springframework.bootspring-boot-starter-parent2.1.7.RELEASE
liuhenghui5201
·
2020-08-11 05:21
SpringBoot
redis
spring
boot
Spring Boot 2.x 事务处理(一篇长文让你读懂什么是隔离级别和传播行为)
下面我们聊一聊
SpringBoot2.x
的事务处理机制。这篇文章是博主参考《深入浅出Spring
syrain丶华思雨
·
2020-08-11 04:28
Spring
Boot
springboot
事务控制
传播行为
隔离级别
java
SpringBoot2.x
整合MongoDB——MongoTemplate
MongoDB按照惯例,肯定是要介绍一番的,不想看的朋友可以直接跳到下面的MongoTemplate使用。MongoDB是一个文档数据库,是一个非关系型数据库(NoSql)。处理速度超级快,同样的数据库还有Redis,被称为性能利器的Redis同样是非关系数据库,但是redis不能运算,尽管有脚本可以辅助,但是终究在某些方面是不如MongoDB的。可以说MongoDB是一个最接近关系型数据库的No
syrain丶华思雨
·
2020-08-11 04:28
Spring
Boot
Spring Boot 2.x整合Redis
最近在学习
SpringBoot2.x
整合Redis,在这里和大家分享一下,希望对大家有帮助。Redis是什么Redis是开源免费高性能的key-value数据库。
sarihoo012
·
2020-08-11 04:41
Spring
Boot
Day57——
SpringBoot2.x
整合MyBatis
解决方案2.2.2.3原理2.2.3指定扫描mapper包2.3配置版MyBatis2.3.1步骤2.3.2报错Invalidstatmentxxxnotfound一.问题背景前面学习了Day56——
SpringBoot2
Android_la
·
2020-08-10 20:48
SpringBoot
Day58——
SpringBoot2.x
整合SpringData JPA
文章目录一.回顾二.整合SpringDataJPA2.1JPA简介2.2环境搭建一.回顾前面学习了Day57——SpringBoot整合MyBatis,今天来学习整合SpringDataJPA二.整合SpringDataJPA2.1JPA简介2.2环境搭建创建application.yml配置数据源,如下:spring:datasource:url:jdbc:mysql://192.168.32.
Android_la
·
2020-08-10 20:48
SpringBoot
springboot+Lettuce+Protobuf+redis
springboot整合redis选用
springboot2.x
;redis5.0.x;protobuf3.x;目录pom配置->redis配置->fastJsonTemplateConfig配置工具类
追风的独角鲸
·
2020-08-10 12:48
springBoot
springboot2.x
的 RedisCacheManager
redis介绍Redis是目前业界使用最广泛的内存数据存储。相比memcached,Redis支持更丰富的数据结构,例如hashes,lists,sets等,同时支持数据持久化。除此之外,Redis还提供一些类数据库的特性,比如事务,HA,主从库。可以说Redis兼具了缓存系统和数据库的一些特性,因此有着丰富的应用场景。本文介绍Redis在SpringBoot中两个典型的应用场景。如何使用1、引入
奔跑者runner
·
2020-08-10 10:11
java缓存
SpringCloud项目开源
Eureka(服务注册中心)Feign(声明式服务调用)Hystrix(服务熔断以及服务降级)Dashboard(服务监控)Gatway(网关)Sleuth+Zipkin(链路追踪)logback(日志)
SpringBoot2
蛇皮皮蛋
·
2020-08-10 05:23
开源
SpringBoot2.x
集成Activiti6.xs :java.lang.ArrayStoreException: sun.reflect.annotation.***
今天使用
SpringBoot2.x
版本集成Activiti6.x启动Application.java程序,提示如下错误信息:org.springframework.beans.factory.BeanCreationException
在奋斗的大道
·
2020-08-10 05:14
activiti
流程引擎
springboot1.5.x升级到
springboot2.x
解决方案
pageRequest的过时更改为Pageablepageable=PageRequest.of(pageIndex,pageSize,sort);注解@NotEmpty@Email过时重新导入@javax.validation.constraints包下的相关注解ElasticSearch与SpringBoot整合相关错误3.1Es实体注解改为@Field(index=false)3.2字段ty
中森明菜
·
2020-08-10 05:13
#
SpringBoot
springboot2.X
手册:抛弃ELK,百亿日志+调用链的Easylog很放心
现在很多的日志,在搭建的时候,都喜欢用Kafka+ELK来做,但是搭建起来就比较麻烦,就算不做高可用,做起来起码有4个组件需要,那做高可用的话,那就更多了,像zookeeper一般我们做集群,最低是3个节点。前几天无意间发现了一个轻量级的日志平台,分享一下给大家。Plumelog简介1、基于Java的一个分布式日志系统,支持百亿级别2、支持调用链的记录写入,方便进行链路追踪,如果接触过skywal
java梦想口服液
·
2020-08-10 04:17
分布式
中间件
redis
java
数据库
SpringBoot学习(2)-- SpringBoot配置了 server.servlet.path 后无效的解决方案
目录引言解决方式重写配置引言在springboot1.x版本的时候,如果要制定访问规则,例如:*.action这种格式,只需要在配置文件中进行如下配置即可:server.servlet.path=*.action但是,到了
springboot2
我想吃猪蹄
·
2020-08-10 03:19
学习之路
springboot
Springboot2.X
精美博客,功能齐全
1、博客介绍DimpleBlog是基于SpringBoot2搭建的个人博客系统.目前master分支的是基于SpringBoot2和Vue的前后端分离版本.thymeleaf-version是基于SpringBoot2的一体机代码.建议不熟悉Vue的可以切到这个版本使用。2、安装说明1、在application-druid.yml中配置mysql。以及本地需要安装redis。redis设置密码为空
qq_302920276
·
2020-08-10 00:11
web
Others
springboot2.X
集成RPC服务Hprose(注解模式)
服务端(端口9989)1.新建maven项目,引入hprose-jarorg.hprosehprose-java2.0.382.业务处理类//接口publicinterfaceRpcService{StringlearnRpc(Stringmessage);}//实现类@Service("rpcService")publicclassRpcServiceImplimplementsRpcServi
52fighting
·
2020-08-09 23:02
springboot
SpringBoot2.x
入门:使用MyBatis
点击上方蓝字↑↑Throwable文摘关注公众号设置星标,不定时推送高质量原创文章关注前提这篇文章是《
SpringBoot2.x
入门》专辑的「第8篇」文章,使用的SpringBoot版本为2.3.1.RELEASE
Throwable文摘
·
2020-08-09 16:04
mybatis
spring
boot
generator
java
maven
上一页
15
16
17
18
19
20
21
22
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他