1,917,720 questions
0
votes
1
answer
46
views
ERROR: failed to build: failed to solve: openjdk:17: failed to resolve source metadata for docker.io/library/openjdk:17-oracle: [duplicate]
I have created a java appliction, I wish to upload the appliaction as a docker image.
The Problem is it looks like Java 17 is not supported, or no longer supported.
I have used
FROM openjdk:17
I got ...
-2
votes
0
answers
45
views
Mockito.verify not behaving properly when using a capture [closed]
I recently upgraded to jdk21 and a test started failing on this line:
verify(this.myService, times(2)).myMethod(myCaptor.capture());
The issue seems to be the use of a capture. If I remove it (...
0
votes
1
answer
33
views
Spring Authorization Server OAuth2AuthorizationServerConfigurer.authorizationServer() method not found
I am new to spring security. I have been looking to build an authorization server and I have went through a couple of documentations. I saw that all of them have used something like:
...
0
votes
0
answers
34
views
Could someone please explain how to set these values from my spreadsheetML in POI
I am working on a Java/Spring project where users submit data via XML files, we process the files, checking the data against specific checks, and logging any checks that are violated into an XML file ...
0
votes
0
answers
32
views
How to create a P12 keystore with PBES2?
The upcoming openssl release 3.0 will remove support for weak crypto in PKCS#12 files. So .p12 files generated with the Bouncy Castle provider that typically have this crypto:
$ openssl pkcs12 -in ...
0
votes
1
answer
107
views
How to convert Java enum constant to its human-readable description string?
I have Java enums with a description field that I want to persist to the database instead of the enum constant name.
For example:
public enum CommitteeType {
AUDIT_COMMITTEE("audit committee&...
1
vote
0
answers
26
views
Not able to send client certificate to nginx server - BouncyCastle
Hello I'm trying to send client side certificate to nginx server using mTls 1.3,
I use my self signed certificate from my java keystore, I already tested firefox<->nginx using the exported ...
0
votes
0
answers
43
views
Spring Boot multi-module: dependency module beans not loaded after mvn package (decorator bean ignored)
I have a Spring Boot multi-module Maven project.
Modules:
module-1 → Spring Boot application (packaged as a runnable fat jar)
module-2 → Spring Boot application (also packaged as fat jar)
module-3 →...
0
votes
0
answers
60
views
Hidden component still occupies space
I want to dynamically hide a field and make the lower components move up. For a reason I can't comprehend, I have to wrap the field in a Container — otherwise, the space stays blank (unless I manually ...
-2
votes
0
answers
28
views
Spring AI MCP Client compilation error while setting MCP server url property [closed]
I have setup MCP server and its running successfully - verified with MCP inspector.
I am trying to configure MCP client to connect with MCP server. Getting compliation error wihile setting up server ...
Best practices
0
votes
0
replies
11
views
how to register a dubbo instance to the nacos registration center using a public ip address?
how to register a dubbo instance to the nacos registration center using a public ip address?
because i want at local environment to call nacos test environment instance,convenient for local debugging, ...
Best practices
0
votes
1
replies
21
views
How best to implement Edge-to-Edge design on an XML based Android application
I have an XML, AndroidX based application (i.e. not using any Jetpack Compose components) that now targets SDK 36 and I need to update to take advantage of edge-to-edge. Having read a number of guides,...
1
vote
1
answer
92
views
Implementing remember-me/stay logged in logic in a Servlet
I would like to implement a remember-me functionality in my very plain servlet based system. No Spring, No Shiro nothing. I'm mightily struggling to make it work. On paper it seems fairly straight ...
0
votes
1
answer
82
views
How to configure IDEA to look in different source sets depending on the build option?
This is a Java/Kotlin project. I want to be able to write code with one abstraction in the main and different implementations in multiple source sets. And then run it as a Java application.
There are ...
0
votes
2
answers
61
views
Correct dependency for @AutoConfigureMetrics and @AutoConfigureTracing (Spring Boot 4.0.1)
I am upgrading my Spring Boot app to Spring Boot 4.0.1.
However, I can not figure out the correct dependency to add to my pom.xml for the following annotations in my @SpringBootTest annotated ...