Spring boot + Angular application workingEmbed angular into spring application and access Spring Controllers when running ng serveHow to configure port for a Spring Boot applicationIn Angular, how do you determine the active route?How can I deploy a spring-boot webapp with angular 2 frontend (angular-cli build) to Tomcat?Spring Boot/Angular 4 - Routing in app hits the serverSpring Boot-Angular - Entering Url in Address Bar results in 404whitelabel error page 404 spring boot angular 5Spring Boot Angular application route from spring controller to angular component(view)Angular routing is not working with Spring BootHow to load angular component by hitting URL in browser while using spring boot?Spring boot fat jar with Angular does not work

As a 16 year old, how can I keep my money safe from my mother?

Can a PC attack themselves with an unarmed strike?

In a topological space if there exists a loop that cannot be contracted to a point does there exist a simple loop that cannot be contracted also?

Can an SPI slave start a transmission in full-duplex mode?

Shabbat clothing on shabbat chazon

English - Acceptable use of parentheses in an author's name

During the Space Shuttle Columbia Disaster of 2003, Why Did The Flight Director Say, "Lock the doors."?

How to identify the wires on the dimmer to convert it to Conventional on/off switch

Is refreshing multiple times a test case for web applications?

Use of "When" in present vs "whenever"

Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?

SQL Minimum Row count

Do other countries guarantee freedoms that the United States does not have?

Does this smartphone photo show Mars just below the Sun?

How would I as a DM create a smart phone-like spell/device my players could use?

Look mom! I made my own (Base 10) numeral system!

Improving software when the author can see no need for improvement

How to write "upright" integrals with automatic sizing

Why are physicists so interested in irreps if in their non-block-diagonal form they mix all components of a vector?

Does the Shapechange spell allow one to use Innate Spellcasting of the creature they turned into?

Why is there a need to prevent a racist, sexist, or otherwise bigoted vendor from discriminating who they sell to?

How to translate this word-play with the word "bargain" into French?

Pandas: fill one column with count of # of obs between occurrences in a 2nd column

Double blind peer review when paper cites author's GitHub repo for code



Spring boot + Angular application working


Embed angular into spring application and access Spring Controllers when running ng serveHow to configure port for a Spring Boot applicationIn Angular, how do you determine the active route?How can I deploy a spring-boot webapp with angular 2 frontend (angular-cli build) to Tomcat?Spring Boot/Angular 4 - Routing in app hits the serverSpring Boot-Angular - Entering Url in Address Bar results in 404whitelabel error page 404 spring boot angular 5Spring Boot Angular application route from spring controller to angular component(view)Angular routing is not working with Spring BootHow to load angular component by hitting URL in browser while using spring boot?Spring boot fat jar with Angular does not work






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am new to Angular 7. I want to build Spring Boot+ Angular 7 application but I confused on how does Spring Boot + Angular 7 will work together. To explain my problem, I have created a sample project where I have defined rest controllers and angular application where I have created modules and defined routes. Now when I am running the Spring boot Application from inside my IDE, then I am not able to understand the behavior of the application. Some questions arising are:



1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server.



2) When I manually writing one of the route path configured in angular in the browser why the call is not going to the angular server.



An overview of how spring boot and angular work in combination would help in understanding and start writing code in the application.



As per my understanding of Angular 7 as of now, the default index.html is loaded where we specify our app-component to load and further in the app-component we specify our other components to load . In case of router configurations we simply specify <router-outlet></router-outlet> in the app.component.html. But how does this understanding fit in when angular 7 is running in combination with Spring Boot.










share|improve this question






























    0















    I am new to Angular 7. I want to build Spring Boot+ Angular 7 application but I confused on how does Spring Boot + Angular 7 will work together. To explain my problem, I have created a sample project where I have defined rest controllers and angular application where I have created modules and defined routes. Now when I am running the Spring boot Application from inside my IDE, then I am not able to understand the behavior of the application. Some questions arising are:



    1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server.



    2) When I manually writing one of the route path configured in angular in the browser why the call is not going to the angular server.



    An overview of how spring boot and angular work in combination would help in understanding and start writing code in the application.



    As per my understanding of Angular 7 as of now, the default index.html is loaded where we specify our app-component to load and further in the app-component we specify our other components to load . In case of router configurations we simply specify <router-outlet></router-outlet> in the app.component.html. But how does this understanding fit in when angular 7 is running in combination with Spring Boot.










    share|improve this question


























      0












      0








      0








      I am new to Angular 7. I want to build Spring Boot+ Angular 7 application but I confused on how does Spring Boot + Angular 7 will work together. To explain my problem, I have created a sample project where I have defined rest controllers and angular application where I have created modules and defined routes. Now when I am running the Spring boot Application from inside my IDE, then I am not able to understand the behavior of the application. Some questions arising are:



      1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server.



      2) When I manually writing one of the route path configured in angular in the browser why the call is not going to the angular server.



      An overview of how spring boot and angular work in combination would help in understanding and start writing code in the application.



      As per my understanding of Angular 7 as of now, the default index.html is loaded where we specify our app-component to load and further in the app-component we specify our other components to load . In case of router configurations we simply specify <router-outlet></router-outlet> in the app.component.html. But how does this understanding fit in when angular 7 is running in combination with Spring Boot.










      share|improve this question














      I am new to Angular 7. I want to build Spring Boot+ Angular 7 application but I confused on how does Spring Boot + Angular 7 will work together. To explain my problem, I have created a sample project where I have defined rest controllers and angular application where I have created modules and defined routes. Now when I am running the Spring boot Application from inside my IDE, then I am not able to understand the behavior of the application. Some questions arising are:



      1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server.



      2) When I manually writing one of the route path configured in angular in the browser why the call is not going to the angular server.



      An overview of how spring boot and angular work in combination would help in understanding and start writing code in the application.



      As per my understanding of Angular 7 as of now, the default index.html is loaded where we specify our app-component to load and further in the app-component we specify our other components to load . In case of router configurations we simply specify <router-outlet></router-outlet> in the app.component.html. But how does this understanding fit in when angular 7 is running in combination with Spring Boot.







      angular spring-boot






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 27 at 6:52









      TarunTarun

      931 silver badge13 bronze badges




      931 silver badge13 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          0














          There is no Angular server. It's a JavaScript framework, that runs entirely in the browser.



          If you send a request to your Spring Boot server, then the Spring Boot server answers, according to the rules of Spring Boot alone. The Angular application is just a bunch of static JS, CSS files, and an index.html static file, that are served by your Spring Boot server.



          If you navigate using the Angular router through your Angular application routes, then it all happens inside the browser (i.e. Angular basically changes the URL in the browser location bar). If you refresh, however, you will indeed send a request to the Spring Boot server, which will have to serve the index.html page again, to reload and restart the Angular single page app (as described in the guide)






          share|improve this answer
































            0














            If You have not change any configurations such as ports for both angular and spring boot.
            then angular runs on http://localhost:4200 and spring boot runs on http://localhost:8080.

            If you want to hit end points of back-end from front-end then you need to proxy your requests to http://localhost:8080.

            how to proxy your requests check here

            1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server. - will call back-end or spring boot.






            share|improve this answer



























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371365%2fspring-boot-angular-application-working%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              There is no Angular server. It's a JavaScript framework, that runs entirely in the browser.



              If you send a request to your Spring Boot server, then the Spring Boot server answers, according to the rules of Spring Boot alone. The Angular application is just a bunch of static JS, CSS files, and an index.html static file, that are served by your Spring Boot server.



              If you navigate using the Angular router through your Angular application routes, then it all happens inside the browser (i.e. Angular basically changes the URL in the browser location bar). If you refresh, however, you will indeed send a request to the Spring Boot server, which will have to serve the index.html page again, to reload and restart the Angular single page app (as described in the guide)






              share|improve this answer





























                0














                There is no Angular server. It's a JavaScript framework, that runs entirely in the browser.



                If you send a request to your Spring Boot server, then the Spring Boot server answers, according to the rules of Spring Boot alone. The Angular application is just a bunch of static JS, CSS files, and an index.html static file, that are served by your Spring Boot server.



                If you navigate using the Angular router through your Angular application routes, then it all happens inside the browser (i.e. Angular basically changes the URL in the browser location bar). If you refresh, however, you will indeed send a request to the Spring Boot server, which will have to serve the index.html page again, to reload and restart the Angular single page app (as described in the guide)






                share|improve this answer



























                  0












                  0








                  0







                  There is no Angular server. It's a JavaScript framework, that runs entirely in the browser.



                  If you send a request to your Spring Boot server, then the Spring Boot server answers, according to the rules of Spring Boot alone. The Angular application is just a bunch of static JS, CSS files, and an index.html static file, that are served by your Spring Boot server.



                  If you navigate using the Angular router through your Angular application routes, then it all happens inside the browser (i.e. Angular basically changes the URL in the browser location bar). If you refresh, however, you will indeed send a request to the Spring Boot server, which will have to serve the index.html page again, to reload and restart the Angular single page app (as described in the guide)






                  share|improve this answer













                  There is no Angular server. It's a JavaScript framework, that runs entirely in the browser.



                  If you send a request to your Spring Boot server, then the Spring Boot server answers, according to the rules of Spring Boot alone. The Angular application is just a bunch of static JS, CSS files, and an index.html static file, that are served by your Spring Boot server.



                  If you navigate using the Angular router through your Angular application routes, then it all happens inside the browser (i.e. Angular basically changes the URL in the browser location bar). If you refresh, however, you will indeed send a request to the Spring Boot server, which will have to serve the index.html page again, to reload and restart the Angular single page app (as described in the guide)







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 27 at 7:01









                  JB NizetJB Nizet

                  564k68 gold badges939 silver badges1051 bronze badges




                  564k68 gold badges939 silver badges1051 bronze badges


























                      0














                      If You have not change any configurations such as ports for both angular and spring boot.
                      then angular runs on http://localhost:4200 and spring boot runs on http://localhost:8080.

                      If you want to hit end points of back-end from front-end then you need to proxy your requests to http://localhost:8080.

                      how to proxy your requests check here

                      1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server. - will call back-end or spring boot.






                      share|improve this answer





























                        0














                        If You have not change any configurations such as ports for both angular and spring boot.
                        then angular runs on http://localhost:4200 and spring boot runs on http://localhost:8080.

                        If you want to hit end points of back-end from front-end then you need to proxy your requests to http://localhost:8080.

                        how to proxy your requests check here

                        1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server. - will call back-end or spring boot.






                        share|improve this answer



























                          0












                          0








                          0







                          If You have not change any configurations such as ports for both angular and spring boot.
                          then angular runs on http://localhost:4200 and spring boot runs on http://localhost:8080.

                          If you want to hit end points of back-end from front-end then you need to proxy your requests to http://localhost:8080.

                          how to proxy your requests check here

                          1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server. - will call back-end or spring boot.






                          share|improve this answer













                          If You have not change any configurations such as ports for both angular and spring boot.
                          then angular runs on http://localhost:4200 and spring boot runs on http://localhost:8080.

                          If you want to hit end points of back-end from front-end then you need to proxy your requests to http://localhost:8080.

                          how to proxy your requests check here

                          1) when I start the application and hit http://localhost:8080 in browser, where would the call go , to Spring Boot Application server or angular server. - will call back-end or spring boot.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 27 at 7:01









                          ashish palashish pal

                          4213 silver badges10 bronze badges




                          4213 silver badges10 bronze badges






























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371365%2fspring-boot-angular-application-working%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                              Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                              Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript