Where do you specify urls in a spring mvc project?Spring @MVC and @RequestParam validationRESTful Authentication via SpringSpring MVC: Appropriate extension point for wrapping API Responsesequivalent of httpwebrequest in spring mvcPassing date to request param in Spring MVCSpring MVC @PathVariable with dot (.) is getting truncatedSpring MVC redirect cutting JSESSIONID in URLHow to get access to HTTP header information in Spring MVC REST controller?How to extract IP Address in Spring MVC Controller get call?Spring MVC url-pattern syntax

extract specific cheracters from each line

Why does the seven segment display have decimal point at the right?

Can you create water inside someone's mouth?

Dissuading my girlfriend from a scam

Matlab fmincon for a problem with many nonlinear constraints

Why there are construction cranes on apparently completed buildings in New York?

How to create large inductors (1H) for audio use?

Types of tablet... a tablet secretion

Professor refuses to write a recommendation letter to students who haven't written a research paper with him

Where on Earth is it easiest to survive in the wilderness?

Could this estimate of the size and mass of the Chicxulub Impactor be accurate?

Why Is Sojdlg123aljg a Common Password?

Was the lunar landing site always in the same plane as the CM's orbit?

I won a car in a poker game. How is that taxed in Canada?

My Friend James

In High Performance Liquid Chromatography, why are ratios of solvents used?

What is the justification for Dirac's large numbers hypothesis?

How does the UK House of Commons think they can prolong the deadline of Brexit?

How do German speakers decide what should be on the left side of the verb?

Why did Boris Johnson call for new elections?

These roommates throw strange parties

Existence of a Hölder-free space

Why does the UK Prime Minister need the permission of Parliament to call a general election?

How do I use NEC PC-6001 .p6 or .cas files?



Where do you specify urls in a spring mvc project?


Spring @MVC and @RequestParam validationRESTful Authentication via SpringSpring MVC: Appropriate extension point for wrapping API Responsesequivalent of httpwebrequest in spring mvcPassing date to request param in Spring MVCSpring MVC @PathVariable with dot (.) is getting truncatedSpring MVC redirect cutting JSESSIONID in URLHow to get access to HTTP header information in Spring MVC REST controller?How to extract IP Address in Spring MVC Controller get call?Spring MVC url-pattern syntax






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








0















If we are calling an internal service we would look up its address from a service registry. But what if the service we are calling is external like some google api. What is the right place to declare the url? In the .net world we would define it in web.config but not sure what would be a good place to declare it in spring mvc.










share|improve this question
























  • if it is not spring boot then you can use use any .properties file, else in the case you may use application.properties to hold such variables

    – kakabali
    Mar 28 at 5:32

















0















If we are calling an internal service we would look up its address from a service registry. But what if the service we are calling is external like some google api. What is the right place to declare the url? In the .net world we would define it in web.config but not sure what would be a good place to declare it in spring mvc.










share|improve this question
























  • if it is not spring boot then you can use use any .properties file, else in the case you may use application.properties to hold such variables

    – kakabali
    Mar 28 at 5:32













0












0








0








If we are calling an internal service we would look up its address from a service registry. But what if the service we are calling is external like some google api. What is the right place to declare the url? In the .net world we would define it in web.config but not sure what would be a good place to declare it in spring mvc.










share|improve this question














If we are calling an internal service we would look up its address from a service registry. But what if the service we are calling is external like some google api. What is the right place to declare the url? In the .net world we would define it in web.config but not sure what would be a good place to declare it in spring mvc.







spring spring-mvc






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 4:38









FooFoo

1,3516 gold badges22 silver badges41 bronze badges




1,3516 gold badges22 silver badges41 bronze badges















  • if it is not spring boot then you can use use any .properties file, else in the case you may use application.properties to hold such variables

    – kakabali
    Mar 28 at 5:32

















  • if it is not spring boot then you can use use any .properties file, else in the case you may use application.properties to hold such variables

    – kakabali
    Mar 28 at 5:32
















if it is not spring boot then you can use use any .properties file, else in the case you may use application.properties to hold such variables

– kakabali
Mar 28 at 5:32





if it is not spring boot then you can use use any .properties file, else in the case you may use application.properties to hold such variables

– kakabali
Mar 28 at 5:32












1 Answer
1






active

oldest

votes


















2
















If you are using Spring Framework



Good place to define all your static URLs would be in *.properties file.



Default one is application.properties



This file will be added in src/main/resources folder of project






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/4.0/"u003ecc by-sa 4.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%2f55390267%2fwhere-do-you-specify-urls-in-a-spring-mvc-project%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2
















    If you are using Spring Framework



    Good place to define all your static URLs would be in *.properties file.



    Default one is application.properties



    This file will be added in src/main/resources folder of project






    share|improve this answer





























      2
















      If you are using Spring Framework



      Good place to define all your static URLs would be in *.properties file.



      Default one is application.properties



      This file will be added in src/main/resources folder of project






      share|improve this answer



























        2














        2










        2









        If you are using Spring Framework



        Good place to define all your static URLs would be in *.properties file.



        Default one is application.properties



        This file will be added in src/main/resources folder of project






        share|improve this answer













        If you are using Spring Framework



        Good place to define all your static URLs would be in *.properties file.



        Default one is application.properties



        This file will be added in src/main/resources folder of project







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 28 at 5:44









        MyTwoCentsMyTwoCents

        3,8202 gold badges11 silver badges32 bronze badges




        3,8202 gold badges11 silver badges32 bronze badges





















            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















            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%2f55390267%2fwhere-do-you-specify-urls-in-a-spring-mvc-project%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