PolarisRegistration使用spring-boot-devtools报.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" #1158
Labels
enhancement
New feature or request
Milestone
Describe the bug
PolarisRegistration使用spring-boot-devtools报.NullPointerException: Cannot invoke "java.lang.Integer.intValue()"
原因猜测:
正常启动时PolarisContextProperties在其他配置类调用了configuration方法对localPort进行了初始化,修改代码后触发热部署,因为PolarisContextProperties热重载后没有configuration又被注入到了PolarisRegistration中,PolarisRegistration中port为int触发拆箱导致空指针。
To Reproduce
spring.cloud.polaris.local-port
;Expected behavior
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: