From de542a1a4f293376ab368016c54b98a0c23a2a01 Mon Sep 17 00:00:00 2001 From: Nikhil Sreeni <96715834+nikhilsreeni29@users.noreply.github.com> Date: Mon, 27 Dec 2021 12:21:59 +0530 Subject: [PATCH] Update HelloWorldService.js --- .../frontend/src/service/HelloWorldService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-boot-react-hello-world-with-routing/frontend/src/service/HelloWorldService.js b/spring-boot-react-hello-world-with-routing/frontend/src/service/HelloWorldService.js index 493fdf4..67b244b 100644 --- a/spring-boot-react-hello-world-with-routing/frontend/src/service/HelloWorldService.js +++ b/spring-boot-react-hello-world-with-routing/frontend/src/service/HelloWorldService.js @@ -1,6 +1,8 @@ import axios from 'axios' class HelloWorldService { + + //here http://localhost:8080/ replace it whith your spring boot address executeHelloWorldService() { return axios.get('http://localhost:8080/hello-world'); @@ -16,4 +18,4 @@ class HelloWorldService { } -export default new HelloWorldService() \ No newline at end of file +export default new HelloWorldService()