|
|
@@ -13,14 +13,13 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import es.uv.saic.domain.Noticia;
|
|
|
-import es.uv.saic.service.NoticiaService;
|
|
|
-
|
|
|
+import es.uv.saic.feign.NoticiaClient;
|
|
|
|
|
|
@Controller
|
|
|
public class LoginController {
|
|
|
|
|
|
@Autowired
|
|
|
- private NoticiaService serv;
|
|
|
+ private NoticiaClient nc;
|
|
|
@Autowired
|
|
|
private ProceduresController procedures;
|
|
|
|
|
|
@@ -40,7 +39,7 @@ public class LoginController {
|
|
|
}
|
|
|
|
|
|
model.addAttribute("notices", null);
|
|
|
- List<Noticia> l = this.serv.findVisibles();
|
|
|
+ List<Noticia> l = this.nc.findVisibles();
|
|
|
if(l != null) {
|
|
|
if(!l.isEmpty()) {
|
|
|
model.addAttribute("notices", l);
|