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;
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
add a comment |
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
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
add a comment |
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
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
spring spring-mvc
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Mar 28 at 5:44
MyTwoCentsMyTwoCents
3,8202 gold badges11 silver badges32 bronze badges
3,8202 gold badges11 silver badges32 bronze badges
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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