≡ Menu

Remember Sharing is caring! So if you get something from this Apache Maven tutorial please share it with others on facebookgoogle+, LinkedIn, Twitter  etc… so it may help them too! :)

In this Apache Maven tutorial, I want to take a little time to walk through some of the key concepts surrounding Maven Archetypes and the Maven POM. In future articles I’ll build upon these concepts and demonstrate the power of this great build automation tool.

[click to continue…]

in Apache Maven Tutorials, Blog from the Den

Remember Sharing is caring! So if you get something from this Spring tutorial please share it with others on facebookgoogle+, LinkedIn, Twitter  etc… so it may help them too! :)

There’s an area of the Spring Framework that has gained a lot of traction in the past couple of years, its called Spring JavaConfig 

So, what is Spring JavaConfig ?

Spring JavaConfig can be thought of as an XML configuration equivalent, only written in Java code!

This may sound odd to begin with because as we often talk about and try to externalize or decoupling ‘stuff’ away from our Java applications, usually into files of various formats; i.e. XML or properties files… but now we’re talking about taking ‘stuff’ out of files and putting it back into our Java Code! Why?

[click to continue…]

in Blog from the Den, Spring Tutorials
Spring Tutorial – PropertySourcesPlaceholderConfigurer

Spring Tutorial – PropertySourcesPlaceholderConfigurer

Spring Tutorial: How to Externalize Values from code.

In this Spring tutorial we look at how to externalize values from your Java application code ??

If this Spring Tutorial helps you and you would like the full source code and even better a free online video on this topic, so you actually watch the steps taken and follow along click here!

Remember Sharing is caring! So if you get something from this Spring tutorial please share it with others on facebookgoogle+, LinkedIn, Twitter  etc… so it may help them too! :)

It’s not seen as good practice to have actual values hard-coded into you application code.
If you deploy your application into different environments, say from development to test to live, how can those values be changed ?

Values for things like;

  • Filenames,
  • File paths,
  • Server addresses etc…
  • Usernames and Passwords.

All these and others need to be externalized from your actual Java application code. i.e. These values need to be external to your application code and pulled in at runtime from an external source. The reason is that many of the values mentioned and others may be dependent on the environment in which the application is deployed,  e.g. test or live environments. Not to mention the security concerns about having usernames and passwords hard-coded in application code.
[click to continue…]

in Blog from the Den, Spring Tutorials
Spring Tutorial: i18n

Spring Tutorial: Learn about i18n

Spring Tutorial: Internationalization

This Spring Tutorial, looks at Internationalization (i18n)

Also, how to pass parameters to i18n’ed messages.

 

If this Spring Tutorial helps you and you would like the full source code and even better a free online video on this topic, so you actually watch the steps taken and follow along click here!

Remember Sharing is caring! So if you get something from this Spring tutorial please share it with others on facebookgoogle+, LinkedIn, Twitter  etc… so it may help them too! :)

If you want to make your Java application truly international and not have to worry about all the framework type code needed to make it happen. You would be hard pressed to find anything better than the Spring Framework.

In this Spring Tutorial, I want to take a quick look at how internationalization or i18n for short can be achieved easily using the Spring Framework. The principles shown here are good for stand alone Java applications and Web applications.

[click to continue…]

in Blog from the Den, Spring Tutorials
Latest Java Spring Tutorials!

Latest Java Spring Tutorials Part: 1

Get the Spring Tutorials – Part: 1 now, click here!

in Blog from the Den, courses