Covers creating a new Spring MVC web application without Spring XML configuration files or a web.xml file. A good introduction to the Spring Web MVC framework for web applications.
Tag Archives: java
Debugging Java Deadlocks with VisualVM
Example of debugging a multi-threading deadlock in Java using VisualVM.
No Java Runtime by Default in OSX Lion
I upgraded my work mack to OSX 10.7 Lion today, and, to my surprise, there was no Java runtime installed. When I went to launch the .jnlp from our KVM device, it alerted me that there wasn’t one installed and, if I wanted, it would find and download one for me.
JPA and UUID Primary Keys
An example of using UUID primary keys and JPA (Java Persistence API), serializing the UUID to a byte array, and back into a UUID.
Determining MIME type by file extension
A quick way to determine the MIME type for a file is to check the extension of the file against a mapping of known extensions to MIME types. The Apache web server provides a good list of known mappings that is easy to parse
Recent Comments