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

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.dtcms.com/a/359638.html

相关文章:

  • linux 内核 - 常见的文件系统介绍
  • 【K8s】整体认识K8s之存储--volume
  • shell脚本(略)
  • 【Flink】并行度的设置
  • nrf52840 flash 分区
  • 3【鸿蒙/OpenHarmony/NDK】如何在鸿蒙应用中使用NDK?
  • 线阵相机和镜头选型案例介绍
  • 【不懂就问】-手机相关学习
  • 打开多个Excel文件后快速关闭所有的文档,并且退出Excel应用
  • Docker一小时快速上手(附报错解决方式)
  • 并发编程——11 并发容器(Map、List、Set)实战及其原理分析
  • deep seek的对话记录如何导出
  • CICD实战(1) - 使用Arbess+GitPuk+Docker快速实现项目打包构建、docker部署
  • 视频理解与行为识别全景综述
  • 计算机网络:(十六)TCP 的运输连接管理
  • 传统数据库out啦!KINGBASE ES V9R1C10 开启国产数据库“修仙”新纪元!
  • Redis六大常见命令详解:从set/get到过期策略的全方位解析
  • 大模型推理技术解析
  • AI热点周报(8.24~8.30):Grok 2.5开源,OpenAI Realtime正式商用,Meta或与OpenAI或Google合作?
  • 学习记录(二十二)--Overleaf中生成的PDF左上角1.5em问题
  • 【stm32】对射式红外传感器计次以及旋转编码器计次
  • 基于单片机智能大棚/温室大棚/智慧农业/智能栽培种植系统/温湿度控制
  • 使用VBA实现快速多重数据筛选
  • Flink部署实战:从入门到优化
  • 第 14 篇:K-Means与聚类思维——当AI在没有“标准答案”的世界里寻宝
  • python实现滤波器的简单案例
  • python如何打开显示svg图片
  • 阿里云-应用实时监控服务 ARMS
  • Unity笔记(九)——画线功能Linerenderer、范围检测、射线检测
  • AFSIM仿真脚本生成(三)脚本解析技术加速验证过程