Non-functional requirements or NFRs are a set of specifications that describe the system's operation capabilities and constraints and attempt to improve its functionality. These are basically the requirements that outline how well it will operate including things like speed, security, reliability, data integrity, etc.
xxxxxxxxxx
@RestController
public class LoansController {
private static final Logger logger = LoggerFactory.getLogger(LoansController.class);
@Autowired
private LoansRepository loansRepository;
@Autowired
LoansServiceConfig loansConfig;
@PostMapping("/myLoans")
public List<Loans> getLoansDetails(@RequestHeader("eazybank-correlation-id") String correlationid,@RequestBody Customer customer) {
logger.info("getLoansDetails() method started");
List<Loans> loans = loansRepository.findByCustomerIdOrderByStartDtDesc(customer.getCustomerId());
logger.info("getLoansDetails() method ended");
if (loans != null) {
return loans;
} else {
return null;
}
}
@GetMapping("/loans/properties")
public String getPropertyDetails() throws JsonProcessingException {
ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
Properties properties = new Properties(loansConfig.getMsg(), loansConfig.getBuildVersion(),
loansConfig.getMailDetails(), loansConfig.getActiveBranches());
String jsonStr = ow.writeValueAsString(properties);
return jsonStr;
}
}
https://enkonix.com/blog/functional-requirements-vs-non-functional/