Spring MVC HelloWorld Using Maven in Eclipse

Java developers often rely on examples to learn Spring framework. Simple examples are often a key learning resource. There are many Spring MVC HelloWorld applications. However, most of them are outdated (do not integrate Maven, use old version of Spring, etc) or not complete (missing key steps or file hierarchy view). Therefore can not lead … Read more

Spring HelloWorld Example Using Eclipse and Maven

This article illustrates how to do a Spring Hello World by using Eclipse and Maven. You should install eclipse and maven plugin first. 1. Set up a Maven Project Create a Maven project by using the Wizard. GroupId identifies the project uniquely across all projects, so we need to enforce a naming schema. ArtifactId is … Read more

Get Internal Comments By Using Eclipse JDT ASTParser

You may try to use Eclipse JDT ASTParser to parse Java source files, but cannot get the list of internal comments in the .java file. There is a method called getCommentList from the CompilationUnit class. But if you use it, you find that it returns a list of empty comments. How to get internal comments … Read more

Add A File Chooser/Selector for Eclipse RCP Development

File chooser or Directory choose is a common module when file processing is involved in a GUI application. This article use an example to illustrate how to use file chooser/directory chooser under Eclipse RCP, and gives the source code which can be used directly. Under Eclipse RCP, the implementation is simple and the usage is … Read more