Skip to main content
Filter by
Sorted by
Tagged with
Best practices
1 vote
2 replies
69 views

I argue this is the best template: Because it tells you when the yaml had an issue which stopped the app from starting up, instead of quietly exiting. Example if you have a extra space before your ...
tgkprog's user avatar
  • 4,762
0 votes
1 answer
60 views

I have a Spring Boot microservice application which uses MySQL DB for storing user credentials and some other stuff. All services are up after I start docker compose but I cannot access database and I ...
bkrawczynski's user avatar
-3 votes
0 answers
60 views

I am learning Java inheritance and access modifiers. I am trying to understand how the protected modifier works between parent and child classes. I created these classes: class Animal { protected ...
Edward N's user avatar
Best practices
1 vote
5 replies
72 views

I was looking to see how some one else would have approached this coding problem. One of my assignments was to print a string within a box that contains 4 plus signs in the corner. +-----+ !Hello! +---...
MLGdude517's user avatar
Best practices
0 votes
5 replies
84 views

My application has the following properties employeeEngine.callLegacy=true employeeEngine.callNewApi=true I want to make it possible to call either only the legacy service, or the new api endpoint (...
Blue_Elephant's user avatar
2 votes
1 answer
67 views

I tried to test the new Share Consumer feature, after reading the Spring Kafka doc, and created an example project, but I cannot make it work as expected. My example is based on Spring Boot 4.1.0-RC1, ...
Hantsy's user avatar
  • 9,746
-3 votes
0 answers
124 views

I implemented Depth-First Search (DFS) recursively in Java. My current implementation searches the entire node list every time I follow an edge in order to find the target node. public void dfsSearch(...
Faton TTL's user avatar
Best practices
0 votes
4 replies
74 views

I have a list of arrays in integer and want to know third largest number from the list. But I need to use the Stream API functions. List<Integer> list = Arrays.asList(1, 2, 3, 1, 4, 5, 28, 23, ...
Ibrahim Basha Imran's user avatar
-5 votes
0 answers
36 views

Environment - Redisson version: 3.11.0 - Redis deployment: Redis Cluster (3 master + 3 slave) - Client creation: Redisson.create(config) with useClusterServers() - scanInterval explicitly set to ...
May Cui's user avatar
Best practices
1 vote
11 replies
90 views

I'm looking for a free Java code to generate an in-memory x509 security certificate v.3, not a certificate file on the disk. Should support extensions and RSA algo. I need a low-level Java code, ...
Evgeny's user avatar
  • 141
1 vote
0 answers
44 views

Problem I'm trying to set a custom hex color (#00458D) on Excel header cells using Apache POI in a Spring Boot project. The only approach that works without throwing an error is using an indexed color:...
Sandesh's user avatar
  • 11
1 vote
1 answer
72 views

I have a weighted directed graph implementation in Java. My DFS sometimes doesn't find the correct path when there are multiple routes. Here is my code: // Graph.java package at.htl; import java.util....
user32091719's user avatar
0 votes
0 answers
39 views

I’m using the Java-GI bindings library and I’m getting an error when I use Adw.Animation: private void fadeWidget(Widget widget, DoneCallback onDone) { // widget is a Gtk.Image AnimationTarget ...
CraigFoote's user avatar
0 votes
3 answers
106 views

I have the following Email Validation method which checks an Email Address based on 2 conditions: (1) The main format must be valid, (2) UUID cannot appear anywhere in the string. There are 2 Regexes ...
gene b.'s user avatar
  • 12.9k
3 votes
2 answers
157 views

I am trying to send email using Spring Boot with Gmail SMTP, but I am getting the following exception: org.springframework.mail.MailSendException: Mail server connection failed. Failed messages: ...
Omkar Thakur's user avatar

15 30 50 per page
1
2 3 4 5
127729