Wednesday, October 1, 2014

Spring 4TW!

Josh Long, Pivotal /Spring

Spring.io website
Guides section important
4.1.1 just released.
Baseline: Java SE 6 and Java EE 6 (servlet 3.0)

New:
@Autowired, @Lazy
Ordered injection
Construct beans with no default constructor.

Also supports Java EE 7 and Java 8

Spring Boot demo

Spring boot is  simplification of all spring apps.
@EnableAutoConfiguration
@DBRef  MongoDB
@Service
@Bean
@RestController - drop @ResoonseBody
UriComponentBuilder as rest method arg to build url
ResonseEntity.created()
Embedded tomcat or jetty container.
Thymeleaf - jsp templating engine
@EnableWebsocketMessageBroker

Configure boot
HealthIndicator example.

No comments:

Post a Comment