skip to Main Content

Reactjs – can someone help me understand why my api is not working?

So i have this register api created @PostMapping("/register") public ResponseEntity<String> register(@RequestBody RegisterRequest registerRequest){ if (userRepository.findByEmail(registerRequest.getEmail())!=null){ return new ResponseEntity<>("Email already exist",HttpStatus.BAD_REQUEST); } User user = new User(); user.setEmail(registerRequest.getEmail()); user.setName(registerRequest.getName()); user.setLastName(registerRequest.getLastName()); user.setPassword(passwordEncoder.encode(registerRequest.getPassword())); userRepository.save(user); authenticationManager.authenticate( new UsernamePasswordAuthenticationToken(registerRequest.getEmail(), registerRequest.getPassword()) ); return new ResponseEntity<>(jwtUtil.generateToken( registerRequest.getEmail(),…

VIEW QUESTION

spring-boot-starter-data-redis "data.mapping.Parameter does not have a name error" when upgrade spring boot from 3.1 to 3.2

After updating Spring Boot from 3.1 to 3.2, I followed the instructions to add the -parameters flag for Java compilation. Despite this, I'm still encountering the same error, indicated by the stack trace I received. **org.springframework.data.mapping.MappingException: Parameter org.springframework.data.mapping.Parameter@57ced0b5 does not…

VIEW QUESTION
Back To Top
Search