小编Nar*_*ran的帖子

如何在Spring启动时检查使用Spring-WS-Core构建的基于SOAP的Web服务的健康状况

Spring Boot执行器提供健康检查,例如磁盘空间健康指示器,数据源健康指示器和各种其他健康指示器.但我找不到用Spring-WS-Core检查基于SOAP的Web服务构建的健康状况.

我至少需要一种方法来检查WSDL是否已启动并使用Spring-WS公开端点信息.

spring soap web-services spring-ws spring-boot-actuator

6
推荐指数
0
解决办法
969
查看次数

在 Java 内存池中,什么是 JAVA 11 中代码缓存替换的替换?

我看到以下相关问题 - how-is-the-java-memory-pool-dividedgarbage-collection-not-running-for-code-cache-memory-pool但我没有相关的答案。

正如您通过 Jconsole 看到的,内存池中没有更多可用的代码缓存,需要关于它的替代品的一些详细信息以及我们在哪里可以找到有关更改的更多详细信息?

在此处输入图片说明

java jvm mbeans

3
推荐指数
1
解决办法
1020
查看次数

如何对集合进行排序以获取Java顶部/底部的默认值?

给定一个String列表,有时我们不得不对所有项目进行排序,除了少数必须放在顶部或底部的项目,

List<String> profiles = Arrays.asList(new String[] {
        "Y-Profile", "X-Profile", "Default", "A-Profile", "B-Profile"
    });

List<String> sortedProfiles = profiles.stream().sorted((o1, o2)->o1.compareTo(o2)).
                                   collect(Collectors.toList());
Run Code Online (Sandbox Code Playgroud)

带有默认字符串比较的当前输出如下,

sortedProfiles ==> [A-Profile, B-Profile, Default, X-Profile, Y-Profile]
Run Code Online (Sandbox Code Playgroud)

所需的输出如下,由于列表大小是动态的,并且可能在一段时间内变大,因此在Java中没有太多迭代或过滤的最佳方式是什么

sortedProfiles ==> [Default, A-Profile, B-Profile, X-Profile, Y-Profile]
Run Code Online (Sandbox Code Playgroud)

java

0
推荐指数
1
解决办法
128
查看次数