Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

So I have created a REST API. Some of it protected and some are not. Strang thing is, even if I use permitAll() for these endpoints, I'm getting 401 response, instead of 200. SecurityConfig: public ...
SAF SAF's user avatar
  • 11
-1 votes
0 answers
47 views

So im currently self learning and building a fullstack project. I built my Backend with Springboot and I am using Session based auth. The cors config already got all of the possible accepted origins I ...
joel.'s user avatar
  • 11
-1 votes
0 answers
52 views

I was recently coding a Java app which could allow me to see latest videos from my friend's YouTube channel, including his livestreams. Checking for latest videos wasn't a big deal, but checking for ...
kimor's user avatar
  • 1
-3 votes
1 answer
47 views

I'm working on a Springboot project. Trying to store a list in table column using JPA, but it is always failing. I have tried in various ways. The list is not of primitives, but a java class. Always ...
SAF SAF's user avatar
  • 11
0 votes
0 answers
39 views

I have an Avro scheme, something like: { "type": "record", "name": "NotificationEventAvro", "namespace": "io.company.project1.dto....
user32508599's user avatar
-1 votes
1 answer
74 views

How to capture wi-fi channel utilization for system application which has carrier privilleged and also foreground service ? AOSP ref : AOSP Wi-Fi Channel Utlization These are the steps follow to ...
Subhankar's user avatar
  • 523
Tooling
1 vote
7 replies
138 views

I want to check if a String only has latin letters (a-z / A-Z), but it may also contain letters with accents (á, à, ã, â, é, è, etc). What is the best way to do this? If possible, I'd prefer to use ...
rain's user avatar
  • 1
1 vote
0 answers
77 views

I have a sequence with a schema name which does work manually in a SQL tool such as SqlDeveloper: select CRI_API."ISEQ$$_159767".nextval from dual; => 22 The Java application connects to ...
gene b.'s user avatar
  • 12.9k
4 votes
2 answers
151 views

I'm reading images from the system clipboard using JavaFX: Clipboard clipboard = Clipboard.getSystemClipboard(); if (clipboard.hasImage()) { Image image = clipboard.getImage(); System.out....
GGA1729's user avatar
  • 181
1 vote
2 answers
152 views

I'm using Apache Kafka 4.1.2 for a test. It has to send a message in a local-health-status-v0 topic. The topic is created from a Spring Boot 4.0.6 @Config: @Bean public NewTopic healthStatusTopic() { ...
Marc Le Bihan's user avatar
Best practices
0 votes
1 replies
66 views

I have a use case where many light objects share a large internal structure. In order to mitigate severe memory leaks, I want to track usage of the latter and possibly reduce its size if the ...
Turin's user avatar
  • 2,321
Best practices
0 votes
3 replies
98 views

I am a Java newbie taking a 101 course. The final for the course is to complete a project, and I may have went a little more complex than I strictly needed to. I decided to build a very basic dnd ...
Patrick's user avatar
1 vote
0 answers
70 views

I am implementing an integration test on a method of a controller Here is the controller method @PutMapping(value="/create", produces = MediaType.APPLICATION_JSON_VALUE, ...
flamant's user avatar
  • 813
4 votes
1 answer
105 views

There are various Spring annotations that have package-matching attributes. Here are some examples from one of my test classes @EnableJpaRepositories("com.mycompany.repositories") @...
Dónal's user avatar
  • 188k
-2 votes
0 answers
100 views

DFS and BFS returning same traversal order on a generic tree using Java Collections (ArrayDeque) Problem I implemented DFS and BFS traversals for a generic tree using ArrayDeque in Java. Both ...
Héctor Mellado's user avatar

15 30 50 per page
1
2 3 4 5
…
127712