Foo
Foo

Reputation: 4596

Where do you specify urls in a spring mvc project?

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.

Upvotes: 0

Views: 125

Answers (1)

MyTwoCents
MyTwoCents

Reputation: 7624

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

Upvotes: 2

Related Questions