Jeecgboot仪表盘设计器使用https时访问报错

问题

仪表盘设计器设计好后,Nginx配置域名发送https请求时,/drag/page/queryById、/drag/page/addVisitsNumber仍发送http请求。导致发送下面错误:

原因

仪表盘设计器里设计的页面是由后端生成返回给前端的,后端是根据后端服务器是否配置ssl来判断发送的是http请求还是https,所以如果要将http变成https需要在后端配置ssl

解决方式

在application.yml中配置.jks文件路径:

yml 复制代码
server:  
  ssl:  
    key-store: classpath:keystore.jks # jks文件放在src/main/resources路径下
    key-store-password: yourPassword  # 密钥库密码  
    key-alias: yourAlias              # 密钥别名  
    enabled: true

备注

这里是引用
异常:Invalid keystore format,spring boot配置ssl证书格式不合法解决,使用方法4解决

相关推荐
林深的林4 小时前
Http证书体系及证书加密流程(通信流程)
网络协议·http·https
自由鬼12 小时前
Apache HTTP Server 2.4.49 的目录遍历漏洞CVE-2021-41773
网络协议·http·apache
Lucky高15 小时前
HTTP和HTTPS复习
网络协议·http·https
喵手1 天前
Java 11 新特性:从模块化到 HTTP/2 深度解析
java·开发语言·http
游戏开发爱好者82 天前
没有 Mac,如何上架 iOS App?多项目复用与流程标准化实战分享
android·ios·小程序·https·uni-app·iphone·webview
菜鸟是大神2 天前
【已解决】docker: Error response from daemon: Get “https://registry-1.docker.io/v2/“: net/http: request c
http·docker·容器
Arwen3032 天前
从 “http” 到 “https”:只差一张 SSL
http·https·ssl
handsomestWei3 天前
大华设备netsdk http服务封装
http·netsdk·大华·门禁
hello 早上好3 天前
TCP/IP、SOCKET、HTTP
网络协议·tcp/ip·http
2501_916007473 天前
iOS 抓包工具有哪些?2025实用指南与场景推荐
android·ios·小程序·https·uni-app·iphone·webview