Spring 3.0
Organización de paquetes
Ya no existe spring.jar
Un directorio de fuentes y jar por módulo
Soporte para Java 5
Generics and varargs
BeanFactory generics
T getBean(String name, Class
requiredType)
TaskExecutor interface extends java.util.concurrent.Executor
Test Context Framework
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
@Test
Spring EL
XML
Annotation
@Value(value = "#{systemProperties}") private Map
systemProperties;
JavaConfig
Configuración del ApplicationContext en una clase Java
@Configuration public class JavaConfigContext { @Bean public FooService fooService() { FooServiceImpl fooService = new FooServiceImpl(); return fooService; } }
Soporte para REST
REST
Representational State Transfer
Utiliza los métodos HTTP de manera explícita (POST, GET, PUT, DELETE)
No mantiene estado
Expone URIs con forma de directorios
Transfiere XML, JavaScript Object Notation (JSON), o ambos
Anotaciones
@RequestMapping(value = "/clientes/get/{idCliente}", method = RequestMethod.GET) public ModelAndView get(@PathVariable("idCliente") String idCliente, Model model)
Views
MarshallingView
AbstractAtomFeedView
AbstractRssFeedView
Plataformas
Requires Java 5 or above
Java 6 automatically detected & supported
Web container: Servlet 2.4 or above
e.g. Tomcat 5.5 & 6.0
Java EE level: J2EE 1.4 or above
e.g. WebSphere 6.1 & 7.0
Fully OSGi compatible out of the box
featured in dm Server 2.0
Acerca de
Topic
Topic
Spring 3.0
Added: 2010-03-23 16:42:59
From: (Joined 2009-12-01 22:08:05)
64 views |0 downloads
Spring 3.0