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

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현