![Page 1: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/1.jpg)
Lo nuevo en Spring 3.0
Spring Live Perú 2009UNMSM – Lima, 2009Ing. Lennon Shimokawahttp://lshimokawa.net
![Page 2: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/2.jpg)
Conferencias
![Page 3: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/3.jpg)
Spring Perú
http://www.springperu.org/ http://groups.google.com/group/spr
ing-user-group-peru Spring Community Day 2009
![Page 4: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/4.jpg)
Spring 3.0 M3
![Page 5: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/5.jpg)
Reorganización Un directorio de
fuentes y jar por modulo
Ya no existe el spring.jar
Basado en Apache Ivy
![Page 6: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/6.jpg)
Java 5 support
Generics and varargs BeanFactory generics
T getBean(String name, Class<T> requiredType)
TaskExecutor interface extends java.util.concurrent.Executor
![Page 7: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/7.jpg)
Test Context Framework @RunWith(SpringJUnit4ClassRunner.cla
ss) @ContextConfiguration @Test
![Page 8: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/8.jpg)
Spring Expression Language
XML <property name="systemProperties"
value="#{systemProperties}" />
Annotation @Value(value = "#{systemProperties}") private Map<String, String> systemProperties;
![Page 9: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/9.jpg)
JavaConfig support@Configurationpublic class JavaConfigContext {
@Bean public FooService fooService() { FooServiceImpl fooService = new
FooServiceImpl(); return fooService; }}
![Page 10: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/10.jpg)
REST support
![Page 11: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/11.jpg)
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
![Page 12: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/12.jpg)
REST Annotations
@RequestMapping(value = "/clientes/get/{idCliente}", method = RequestMethod.GET)
public ModelAndView get(@PathVariable("idCliente") String idCliente, Model model)
![Page 13: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/13.jpg)
REST Spring MVC Views MarshallingView AbstractAtomFeedVi
ew AbstractRssFeedVie
w
![Page 14: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/14.jpg)
Platform support 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
![Page 15: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/15.jpg)
Otras mejoras
JSR 303: Bean Validation Portlet 2.0 support
![Page 16: Lo nuevo en Spring 3.0 - Spring Live Perú 2009](https://reader035.vdocuments.pub/reader035/viewer/2022062419/558a3dd1d8b42a1e788b4679/html5/thumbnails/16.jpg)
Preguntas
Contacto http://lshimokawa.net http://twitter.com/lshimokawa