SpringBoot报错Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

SpringBoot启动报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be...

SpringBoot2.x整合Elasticsearch7.x

网上教程多是Elasticsearch旧版本,很多方法已弃用,本文以Elasticsearch 7.10.1,SpringBoot 2.3.6.RELEASE为例说明如何整合:一、添加pom依赖<?xml version=&qu...

部署https证书后,部分http链接资源被blocked的问题

https改造之后,部分第三方资源,如bshare分享、cnzz统计等无法正常加载,在很多页面中会看到如下警报:Mixed Content: The page at 'https://***.html' was loaded over...

使用ElasticSearch 报错 java.lang.IllegalStateException: Received message from unsupported version

使用ElasticSearch启动时报错:表示从不支持的版本接收到的消息:[5.2.2]最小兼容版本是:[5.6.0]java.lang.IllegalStateException: Received message from uns...

ElasticSearch 7.10.1报错Root mapping definition has unsupported parameters

新建索引时,报错Root mapping definition has unsupported parametersPUT /cars { "settings": { "number_of_s...

Elasticsearch常见的启动报错

报错一:unable to install syscall filter解决方法:编辑elasticsearch.yml在最下面添加如下配置bootstrap.system_call_filter: false报错二:[1]: max...

Stream语法详解

1. Stream初体验我们先来看看Java里面是怎么定义Stream的:A sequence of elements supporting sequential and parallel aggregate operations.我...

帝国CMS XSS跨站脚本过滤

系统渗透测试发现,帝国CMS存在XSS跨站脚本攻击问题,具体表现为:后台用户提交的参数未做过滤或过滤不严就直接输出到页面,参数中的特殊字符打破了HTML页面的原有逻辑,黑客可以利用该漏洞执行恶意HTML/JS代码、构造蠕虫传播、篡改页...

FastDFS上传文件时,出现500错误

项目背景:项目使用微服务的架构进行开发,前端进行文件上传时,首先经过nginx反向代理到对应的上传文件模块的服务器,再由该服务器将图片上传到FastDFS。点击上传文件后出现500首先就去检查了自己的程序,发现没有日志打出来,所以应该...