Categories
Search
My Tweets
Error: Twitter did not respond. Please wait a few minutes and refresh this page.
Category Archives: Spring Framework
Enterprise Spring Best Practices – Part 2 – Application Architecture
Our application components break down into two fundamental categories, the System and Problem Domains. System Domain – infrastructure components, the plumbing, this is Spring’s sweet spot! Problem Domain – business components, typically use-case driven, this is what most of developers … Continue reading
Posted in Spring, Spring Framework
Tagged application, apring, architecture, best practices, enterprise
3 Comments
Enterprise Spring Best Practices – Part 1 – Project Config
Enterprise Spring Best Practices Series In part 1, let’s review project structure and configuration. Sections Project Directories Project Dependencies Smart Logging Running with Jetty and Tomcat Spring Configuration Files Complete Maven Config Valuable Maven Commands Further Reading Social Me Project … Continue reading
Posted in Eclipse, Jakarta Commons Logging, Java, Java Util Logging, Jetty, Log4J, LogBack, Logging, Maven, SLF4J, Spring, Spring Framework, Spring MVC, STS, Testing, Tomcat
Tagged best practices, Logback, logging, maven, plugins, slf4j, Spring
10 Comments
SpringSource Tool Suite FAQ
Eclipse is one of the most popular IDEs for Java & Spring application development. Spring has developed the Spring IDE plugin providing developers with Spring aware tooling for our projects. SpringSource Tool Suite = { Eclipse + SpringIDE + M2Eclipse … Continue reading
Posted in Grails, Java, OSGi, Roo, Spring, Spring Batch, Spring Framework, Spring Integration, Spring Roo
Tagged AOP, AspectJ, Aspects, Development, Eclipse, EIP, grails, groovy, Integration, osgi, Project, roo, Spring, Spring Roo, SpringSource Tool Suite, STS, Templates, Tools, validation, Visualization, Wizards
Leave a comment
Spring 3.1 Constructor Namespace
Spring Namespaces Spring provides several namespaces to simplify XML configuration, such as jdbc, tx, aop, etc. We Spring developers are already familiar with the required beans namespace. <beans> <bean id=”dataSource” class=”…”/> <bean id=”messagingProvider” class=”…”/> </beans> Spring Namespaces are defined at … Continue reading
Posted in Spring, Spring Framework
Tagged constructor, namespace, Spring, spring 3.1, spring framework
Leave a comment
Spring 3.1 Environment Profiles
Spring 3.1 Environment Profiles Profiles Spring 3.1 now includes support for the long awaited environment aware feature called profiles. Now we can activate profiles in our application, which allows us to define beans by deployment regions, such as “dev”, “qa”, … Continue reading
Posted in JUnit, Spring, Spring Framework, Testing
Tagged junit, Profiles, Spring, spring 3.1, spring framework, Testing
3 Comments
Unit Testing Spring with Mockito & PowerMock
Unit Testing Spring with Mockito & PowerMock I’ve updated my Spring Mockito Demo app that I demonstrate when teaching with a PowerMock of a final class with a static method. Demo Features Maven 3.0 Maven Enforcer plugin restricting use of … Continue reading
Posted in LogBack, Logging, Maven, Mocking, Mockito, PowerMock, SLF4J, Spring Framework, Spring MVC, Testing
Tagged demo, git, junit, Mockito, powermock, Spring, springframework, Testing, unit testing
Leave a comment
Simpler JPA with Spring Data-JPA
How to configure your Spring application with Simple CRUD configuration with Spring Data-JPA. 1. Add Spring Data-JPA to project configuration. In your Maven pom.xml file <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-jpa</artifactId> <version>1.2.0.RELEASE</version> </dependency> 2. Configure JPA Entity … @Entity public class Product { … Continue reading
Posted in Hibernate, JPA, Spring, Spring Data, Spring Framework
Tagged Hibernate, JPA, ORM, Persistence, Spring Data, spring framework, SpringData
12 Comments
SpringSource Tool Suite – Eclipse for Spring Developers
Spring developers using Eclipse should take a close look at SpringSource Tool Suite (STS). STS is a FREE IDE, based on Eclipse with many of the essential tool to assist Spring developers. http://www.springsource.com/developer/sts. The major plugin to Eclipse is Spring … Continue reading
Posted in AOP, AspectJ, Eclipse, Grails, Groovy, Java, Roo, Spring, Spring AOP, Spring Batch, Spring Framework, Spring Integration, Spring MVC, Spring Roo, Web Flow
Tagged Eclipse, Features, grails, groovy, m2eclipse, RefCard, Spring, STS, Tools
3 Comments
Annotation Reference for Spring Projects
Annotations are available for Spring and Java projects. I was unsuccessful in finding a single consolidated set of the annotations. So, I thought “What a great gap to fill.” However, what I thought would be a fairly simple endeavor, turned … Continue reading
Posted in Annotations, AOP, Hibernate, Java, JMX, JPA, JUnit, REST, SOAP, Spring, Spring AOP, Spring Batch, Spring Framework, Spring Integration, Spring MVC, Spring Roo, Spring Security, Web Flow, Web Services
Tagged Annotations, Java, JSR-168, JSR-220, JSR-222, JSR-224, JSR-250, JSR-299, jsr-303, JSR-314, JSR-317, JSR-318, JSR-330, Spring, spring framework
9 Comments
Spring Expression Language (SpEL) Predefined Variables
Spring 3.0 introduced Spring Expression Language (SpEL). There are two variables that you have available “systemProperties” and “systemEnvironment“. SpEL allows us to access information from our beans and system beans information at runtime (late binding). These can be applied to … Continue reading
Posted in SpEL, Spring, Spring Framework
Tagged bean variables, configuration, default, expressions, jsr-303, jsr303, spel, spring framework
2 Comments