1011: Fixed all of the SonarCloud blocking errors (#1017)

* 1011: Added the method to the RequestMapping annotation

* 1011: Changed all of the a href blank targets to include rel="noopener noreferrer"
This commit is contained in:
Christopher O'Connell
2019-10-18 01:50:02 -04:00
committed by Ilkka Seppälä
parent 880b234d8f
commit c308ca09e5
3 changed files with 14 additions and 12 deletions

View File

@ -22,11 +22,12 @@
*/
package com.iluwatar.aggregator.microservices;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* The aggregator aggregates calls on various micro-services, collects
* data and further publishes them under a REST endpoint.
@ -47,7 +48,7 @@ public class Aggregator {
*
* @return a Product.
*/
@RequestMapping("/product")
@RequestMapping(path = "/product", method = RequestMethod.GET)
public Product getProduct() {
Product product = new Product();
product.setTitle(informationClient.getProductTitle());