UnsupportedOperationException: Unable to resolve nested path at org.springframework.boot.Loader.nto.file.NestedPath.resolve(NestedPath.java:130)

I have upgraded my Spring Boot application from version 2.7.3 to 3.2.1. There are no errors at development time, but when I run this as a Docker container, it gives the following error.

Logs(uat/consent-manager-b9d6645d-qcg42:consent-manager) [1m] org.springframework.boot.SpringApplication.run(SpringApplication.java:1358) ~[spring-boot-3.2.1.jar!/:3.2.1] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1347) ~[spring-boot-3.2.1.jar!/:3.2.1] at com.decimaltech.cm. ConsentManager Application.main(ConsentManager Application.java:19) ~[!/:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91) ~[dev-rel-17-1.0.98.jar:0.0.1-SNAPSHOT]
at org.springframework.boot.loader.launch. Launcher.launch(Launcher.java:53) ~[dev-rel-17-1.0.98.jar:0.0.1-SNAPSHOT]
at org.springframework.boot.loader.launch.Jar Launcher.main(JarLauncher.java:58) ~[dev-rel-17-1.0.98.jar:0.0.1-SNAPSHOT]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: Factory method 'resourceHandlerMapping' threw exception with me at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:177) ~[spring-beans-6.1.2.jar!/:6.1.2]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-6.1.2.jar!/:6.1.2] ... 26 common frames omitted
Caused by: java.lang. UnsupportedOperationException: Unable to resolve nested path
at org.springframework.boot.Loader.nto.file.NestedPath.resolve(NestedPath.java:130) ~[dev-rel-17-1.0.98.jar:0.0.1-SNAPSHOT]
at java.base/java.nio.file.TempFileHelper.generatePath(Unknown Source) ~[na:na]
at java.base/java.nio.file.TempFileHelper.create(Unknown Source) ~[na:na]
at java.base/java.nio.file.TempFileHelper.createTempFile(Unknown Source) ~[na:na]
at java.base/java.nio.file.Files.createTempFile(Unknown Source) ~[na:na]
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.createTempFileInSameDirectoryAs(Unknown Source) ~[jdk.zipfs:na]
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getTempPathFor Entry (Unknown Source) ~[jdk.zipfs:na]
at jdk.zipfs/jdk.nio.zipfs.ZipFilesystem.newFileChannel(Unknown Source) ~[jdk.zipfs:na]
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newFileChannel(Unknown Source) ~[jdk.zipfs:na]
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileChannel(Unknown Source) ~[jdk.zipfs:na]
at java.base/java.nio.channels.FileChannel.open(Unknown Source) ~[na:na]
at java.base/java.nio.channels.FileChannel.open(Unknown Source)
~[na:na]

Any help solution is appreciated.