JCH
Java Community | Help. Code. Learn.
We are a Community full of Java developers. You can come here to connect other devs, get help, help others and do many more things!
JoinJCH
Java Community | Help. Code. Learn.
We are a Community full of Java developers. You can come here to connect other devs, get help, help others and do many more things!
Join403 error issue
```@RestController
@RequestMapping("/api/auth")
public class SignUpAndLoginController {
@Autowired...

POST Request blocked by CORS, alrdy allow CORS, spring boot with react project
I'm Working on mockup e-commerce use react and spring boot, and I got stumble on register page. Been trying to make api call to spring boot but got blocked by CORS policy, it quite strange bcz I already allow my local url on CORS policy before (got blocked by CORS when try to GET data from api, but fixed it) and somehow when I try to make POST request it got blocked.
here my repo: https://github.com/W-ptra/dummyShop
register page: https://github.com/W-ptra/dummyShop/blob/main/frontend/src/pages/Register.tsx...

Java tech questions
Hi I have one question I’ll use this opportunity here, how does one get good at job interview technical tests it seems like these hacker rank and leet code style questioning people have this natural talent to solve the problems is it something they picked up along studying or they just have intuition without prior study of Data structures and algorithms or leet code and hacker style questioning because I feel like I’m kind of cheating looking at other people’s videos to understand and not challe...
TestNG won't detect my test or build it
I looked through my Maven plugins, structured my folders as it is supposed to be, and annotated the Test as needed. The test won't build at all. Below is the folder structure, code, and also the logs after trying to run the test.
```
package testCases;...

question
Hello, I have tried figuring out how to get even vs and now a online ide to read my file so the code can run and it just doesnt want to read, ive changed the file name ive changed the class name everything. I just cant figure it out

vmaVirtualFree
I have chunk data that is being alloacted to memory with VMA, and I need to occasionally free the allocation of some chunks.
The method to do this takes an "allocation" long as an argument, but im not sure what i am supposed to actually be giving it....
left fetch join creates race condition with optimistic locking
if i use query to left join authors books the test suddenly doesnt pass
made a demo for simplicity
```java...
macbook error invalid NSTrackingRectTag
Hi! Ive been facing this issue which has been bothering me for a few days, any kind of help would be appreciated thanks!! btw I am a beginner to all this so a simple explanation would help! I am using IntelliJ MacOS (M3 chip)
the error message is attached...
Tomcat Question
Anyone familiar with tomcat? I'm installing it right now and was wondering when installing it im asked for the java virtual machine or JRE path, I know it sounds pretty obvious but if i downloaded the SDK instead of JRE would I get issues?
I'm assuming so since SDK isnt a runtime environment?
using an old version of tomcat and sdk 15 btw...
How to apply request body validation with error details?
Hello there,
I want to apply request body validation to my Spring project
```kt
import jakarta.validation.constraints.*;...
How to access generic info on class
Let's say I have a class like this:
```java
class HelloWorld<T extends World> {
private T world;...
JavaFX on Eclipse
I've followed some youtube tutorials to the dot as to setting up JavaFX on Eclipse. Unfortunately, I am unable to get it to work. The error that i am getting is: "Error: Could not find or load main class application.Main
Caused by: java.lang.ClassNotFoundException: application.Main"...
javax.swing.JOptionPane dont want to import
I want to make the programm that I screened and I don't understand why it don't want to import JOptionPane...
Could someone help me pls ?...

Simple Java Trace Code
Hi, I'm a student and I'm unable to brain the answer behind this question 😔 (answer isn't provided)

pathFinding algorithm will not find path?
Attached is my attempt, trying to find out why it won't work?
Excel Parser: "Floating" checkbox/control boolean value not supported?
More details here, help is greatly appreciated if you are a Java pro! https://stackoverflow.com/questions/79345999/floating-checkbox-control-boolean-value-not-supported
ID format issue as UUID String in Spring Boot with MongoDb
I created an example of Spring Boot with MongoDb. I have a problem in getting an entity by id with validation as it throws "
must be a valid UUID
".
Here is the entity shown below
```
@Getter...Spring Boot Project Manager
I am looking for a Project Manager with expertise in Spring Boot and full-stack development.
General Algorithm and Proficiency in English is essential for effective task discussions.
If you meet these requirements, please feel free to DM me....