当前位置: 首页 > web >正文

arm容器启动spring-boot端口报错

问题描述:

2025-08-31T14:38:31.206+08:00 ERROR 1 --- [spring-boot-nginx-test] [ main] o.s.b.d.LoggingFailureAnalysisReporter :

***************************

APPLICATION FAILED TO START

***************************

Description:

Invalid value 'tcp://192.168.180.154:8091' for configuration property 'server.port' (originating from 'System Environment Property "SERVER_PORT"'). Validation failed for the following reason:

Failed to convert to type java.lang.Integer

Additionally, this property is also set in the following property source:

- In 'Config resource 'file [config/application.yaml]' via location 'optional:file:./config/'' with the value '8080' (originating from 'URL [file:config/application.yaml] - 10:9').

Action:

Review the value of the property with the provided reason.

解决:

server.port=8080
management.server.port=8081

apiVersion: apps/v1
kind: Deployment
metadata:name: spring-boot-nginx-testnamespace: devlabels: app: spring-boot-nginx-test
spec: replicas: 1selector:matchLabels:app: spring-boot-nginx-testtemplate:metadata:labels:app: spring-boot-nginx-testspec:containers:- name: spring-boot-nginx-testimage: spring-boot-nginx-testimagePullPolicy: IfNotPresentenv:- name: SERVER_PORTvalue: "8080"- name: MANAGEMENT_SERVER_PORTvalue: "8081"- name: "JAVA_OPT"value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9527"ports:- name: httpcontainerPort: 8080protocol: TCP- name: debugcontainerPort: 9527protocol: TCPvolumeMounts:- name: datemountPath: /etc/localtimevolumes:- name: datehostPath:path: /etc/localtime
---
apiVersion: v1
kind: Service
metadata:name: spring-boot-nginx-testnamespace: devlabels:app: spring-boot-nginx-test
spec:type: NodePortports:- name: httpport: 8080targetPort: 8080- name: debugport: 9527targetPort: 9527selector:app: spring-boot-nginx-test
http://www.xdnf.cn/news/19586.html

相关文章:

  • 基于开源AI大模型、AI智能名片与S2B2C商城小程序的“教育用户”模式探究
  • 谈谈对BFC的理解
  • 当代科学(范畴大辩论) 的学科分科(论据)的要素论(论点)及方法论(论证):边缘处理
  • 浅谈 SQL 窗口函数:ROW_NUMBER() 与聚合函数的妙用
  • 机器视觉opencv教程(三):形态学变换(腐蚀与膨胀)
  • 利用爬虫获取淘宝商品信息,参数解析
  • 基于单片机停车场管理系统/车位管理/智慧停车系统
  • 小迪自用web笔记22
  • Java线程池使用入门
  • uvm验证环境中struct(结构体)和class的区别与联系
  • 基于单片机老人防丢失防摔倒系统/老人健康状态检测系统
  • CMake⼯程指南-3
  • [光学原理与应用-361]:ZEMAX - 分析 - 像差分析
  • KingbaseES V009版本发布:国产数据库的新飞跃
  • 基于全参考图的质量评价均方误差MSE、峰值信噪比PSNR
  • [特殊字符] Rust概述:系统编程的革命者
  • 力扣(LeetCode) ——101. 对称二叉树(C语言)
  • Vue Router 嵌套路由与布局系统详解:理解 component = router-view 的核心概念
  • 接口测试总结-含接口测试和前端测试的区别与比较
  • Matlab自学笔记六十六:求解带参数的不等式
  • 国庆福建霞浦游
  • Linux 启动传参
  • 使用AdaLoRA 自适应权重矩阵微调大模型介绍篇
  • Docker一小时快速上手(附报错解决方式)
  • 【MLLM】具有长期记忆的多模态智能体框架M3-Agent
  • 《信息学奥林匹克辞典》中的一个谬误
  • Java异常处理完全指南:从入门到精通
  • 安装proteus,并实现stm32仿真
  • 如何解决pip安装报错ModuleNotFoundError: No module named ‘pydantic’问题
  • 从 ETL 到 ELT 再到 EAI:AI 如何重塑数据处理