skip to Main Content

Javascript – Avoid reversing the array

I have my SpringBoot JPA repository like below: public interface ApplicationRepository extends JpaRepository<Application, Long>{ List<Application> findAllByOrderByApplicationyearDesc(); List<Application> findAllByOrderByApplicationyearAsc(); } And my controller is: @GetMapping("/get-data") public ResponseEntity<Map<String, Long>> getPieChart() { List<Application> apps = appRepository.findAllByOrderByApplicationyearDesc(); Map<String, Long> graphData = new TreeMap<>(); for…

VIEW QUESTION

Redis – Bean type not be found

I'm encountering an issue with my Spring Boot application and need assistance to resolve it. Below is the relevant code and the error message: MessageRepository: package com.varpm.listener; import com.test.model.MessageEntity; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; @Repository public interface MessageRepository extends CrudRepository<MessageEntity, String>…

VIEW QUESTION
Back To Top
Search