skip to Main Content

How to subscribe redis key space event with spring

My Environment Mac Ventura 13.6.3 Temurin 17 SpringBoot 3.2.1 org.springframework.boot:spring-boot-starter-data-redis redis cluster running on local machine. (localhost: 7001, localhost: 7002, localhost: 7003 What I want to do I want to receive expire event from redis cluster with spring. What I…

VIEW QUESTION

Json – Does deserialize method(mapper.readValue) allocate direct buffer memory instead of heap memory?

I would like to ask you something about ObjectMapper.readvalue(). ObjectMapper mapper = new ObjectMapper(); List<ConvertType> responseList = new ArrayList<>(); for (ExampleContent content : iterable) { String json = new String(content.getData(), StandardCharsets.UTF_8); responseList.add(mapper.readValue(json, ConvertType)); Like the code above, I want to…

VIEW QUESTION

Javascript – Spring server cannot get data from FetchAPI error 403

I have such function to retrieve data from my form and send them to Spring Boot server function saveDataToStorage(event){ event.preventDefault(); let name = document.getElementById('imie').value; let email = document.getElementById('email').value; let phone = document.getElementById('telefon').value; let topic = document.getElementById('temat').value; let message = document.getElementById('wiadomosc').value;…

VIEW QUESTION

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