本周 Spring 动态 - 2012 年 1 月 15 日

工程 | Josh Long | 2013 年 1 月 16 日 | ...
 Welcome to another installment of <EM>This Week in Spring</EM>! Can you believe we're already halfway through January?  We've got a <EM>lot</EM> to cover, so let's press on!  In particular, there's a <EM>lot</EM> of great video content to keep you occupied for hours this week. Enjoy! 
 </P> 
 <OL>

<li>Join Scott Andrews as he discusses the role of Javascript in an exciting webinar on  January 24, 2013: <a href="http://www.springsource.org/node/3767" title="Webinar: Architecture of a Modern Web App"> Architecture of a Modern Web App</a>.</li>
<LI>Join Brian Cavalier and John Hann as they…

下一站:Spring Framework 4.0

工程 | Juergen Hoeller | 2013 年 1 月 16 日 | ...

亲爱的 Spring 社区:

我很高兴地宣布,核心框架的下一个版本将是 Spring Framework 4.0

当前的 3.2 版本是 3.x 系列的自然收尾,其重点关注领域包括基于 Java 的配置和 REST,以及 Java SE 7 和 Servlet 3.0 的支持。

对于 Spring Framework 4.0,我们的重点将放在 2013 年及以后新兴的企业主题上。

  • 为基于 Java SE 8 的 Spring 应用程序提供一流的支持:例如 lambda 表达式等语言特性;JSR-310 日期和时间等 API。
  • 使用 Groovy 2 配置和实现 Spring 风格的应用程序:基于 Groovy 的 Bean 定义;将 Groovy 作为整个应用程序的首选语言。
  • 对关键 Java EE 7 技术提供支持:包括 JMS 2.0、JPA 2.1、Bean Validation 1.1、Servlet 3.1 和 JCache。
  • 实现 WebSocket 风格的应用程序架构:支持符合 JSR-356 标准的运行时和相关技术。
  • 在应用程序内实现细粒度的事件和消息传递:基于我们现有的应用程序事件和消息监听器机制。
  • 精简和依赖项升级:移除已弃用的功能;将最低依赖项提高到 Java 6+ 等。

在 Spring Framework 3.2 的势头和准备工作的基础上,我们计划再进行一年的迭代,并在 2013 年底达到 4.0 GA 版本。

我们将跟踪 OpenJDK 8 的计划……

本周 Spring 动态 - 2013 年 1 月 8 日

工程 | Josh Long | 2013 年 1 月 8 日 | ...

欢迎回到另一期《本周 Spring 动态》。一如既往,我们有很多内容要看,所以,话不多说……

  1. GigaOM 对目前大数据生态系统中一些令人兴奋和重要的工具进行了精彩的总结。有许多不同的工具服务于不同的用例细分市场。
    <a href="http://gigaom.com/2012/12/18/a-programmers-guide-to-big-data-12-tools-to-know/">and of course Spring Data is mentioned in there</a>, too!
     
    </LI>
     <LI>
    	 The <EM> ODBMS Industry Watch</em> blog 
    		and professor Roberto V. Zicari  
    		has a nice  interview 
    		
    		 <a href ="http://www.odbms.org/blog/2013/01/the-spring-data-project-interview-with-david-turanski">with Spring ninja David Turanski on Spring Data</a>. Definitely a good read!
    
    	
    	 </LI>	 
    
    
     <LI…

Scripted Editor 0.3 版本发布

工程 | Andy Clement | 2013 年 1 月 8 日 | ...

去年 10 月,Scripted 代码编辑器的第一个公开发布版本问世,它是一个基于浏览器的编辑器,使用 Node.js 本地服务器,专注于提供出色的 JavaScript 编辑体验。今天,第一个更新版本 0.3 已发布。

有关最新功能的完整发布说明可在此处获取。以下是一些亮点

 

可通过 NPM 安装

现在可以使用 Node Package Manager (npm) 轻松在 Windows、Linux 或 Mac 上安装 Scripted

npm install -g scripted

(在 Mac/Linux 上可能需要“sudo”前缀)。安装后,可立即使用“scr”命令启动 Scripted。作为……的一部分

本周 Spring 动态 - 2013 年 1 月 1 日

工程 | Josh Long | 2013 年 1 月 1 日 | ...

我写这篇帖子时几乎打出了2012!已经是 2013 年了!希望您的假期过得愉快。

欢迎回到另一期《本周 Spring 动态》!又是一年令人兴奋的新开始(也要记住在文本中正确使用新年日期!)。那么,让我们来看看
社区中那些令人兴奋的新内容。

    <LI> The epic book by <a href="https://twitter.com/rob_winch/status/284812769197441024">Spring Security lead Rob Winch and Peter Mularien   on   Spring Security 3.1</a> by Packt publishing is now out!  
    	  The book is a great resource for people who are looking at Spring Security and want  
    	the scoop from the source.
    	 </lI>
    
    
    
      <LI> Are you…

本周 Spring 动态 - 2012 年 12 月 18 日

工程 | Josh Long | 2012 年 12 月 19 日 | ...

欢迎回到另一期《本周 Spring 动态》!

您能相信我们已经进入 12 月下旬了吗?时间过得真快,是的,我们已经能看到年底了——但节日季通常会在这个时候带来 Spring Framework 的发布,所以我们心情很愉快!我们甚至还有大量的 SpringSource 纪念品来庆祝。

Buttons!

  1. 首先,Spring 3.2 已正式发布 (GA)!请阅读这篇帖子。一个版本中塞满了太多精彩内容,而且——如果您一直关注本系列一年,您就会知道我一直很期待它。当您升级了应用程序并体验了一些精彩的新功能后,再回来阅读剩余内容!我等着……
	    You know what the best part is? Usually, after a new Spring release, the release train of other Spring projects is quick to adopt - so expect lots of releases in the new year!</LI>  
  • 接下来,Spring Security 的负责人兼技术专家 Rob Winch 刚刚宣布了 Spring Security 3.2.0.M1,其中包含针对 Servlet 3 环境的新功能等
  • <LI> We could just stop right there, you know?  BUT, there's more! In this…

    Spring Roo 1.2.3.RELEASE 已发布

    工程 | Alan Stewart | 2012年12月18日 | ...

    Spring Roo团队很高兴地宣布1.2.3.RELEASE版本现已可用。这是1.2版本的第三个维护版本,包含多个问题的修复,并支持Spring Framework 3.2.0。请参阅更新日志,了解已完成的错误修复和改进列表。

    希望您喜欢这个新版本!

    阿兰

    Spring Roo 项目负责人

    Spring Security 3.2 M1 亮点,Servlet 3 API 支持

    工程 | Rob Winch | 2012 年 12 月 17 日 | ...

    上周我宣布了 Spring Security 3.2 M1 的发布,其中包含了改进的 Servlet 3 支持。在这篇帖子中,我将介绍 3.2 M1 版本中一些更精彩的功能。具体来说,我们将看看以下 Spring Security 新功能:

    并发支持

    您可能会问:“为什么在这个以 Servlet 3 为主题的版本中会有并发支持?”原因是并发支持为该版本中的所有其他功能提供了基础。虽然并发支持被 Servlet 3 集成所使用,但它也可以作为构建块,在任何应用程序中支持并发和 Spring Security。现在让我们来看看 Spring Security 的并发支持。

    DelegatingSecurityContextRunnable

    Spring Security 并发支持中最基本的构建块之一是 `DelegatingSecurityContextRunnable`。它包装了一个委托的 `Runnable`,以便使用指定的 `SecurityContext` 来初始化 `SecurityContextHolder`。然后,它调用委托的 `Runnable`,并确保之后清除 `SecurityContextHolder`。`DelegatingSecurityContextRunnable` 看起来如下:

    public void run() {
      try {
        SecurityContextHolder.setContext(securityContext);
        delegate.run();
      } finally {
        SecurityContextHolder.clearContext();
      }
    }
    

    虽然很简单,但它能够无缝地将 `SecurityContext` 从一个 `Thread` 转移到另一个 `Thread`。这很重要,因为在大多数情况下,`SecurityContextHolder` 是基于每个 `Thread` 进行操作的。例如,您可能已经使用了 Spring Security 的 <global-method-security> 支持来保护您的某个服务。现在,您可以轻松地将当前 `Thread` 的 `SecurityContext` 转移到调用受保护服务的 `Thread`。下面的示例展示了如何做到这一点:

    
    Runnable originalRunnable = new Runnable() {
      public void run() {
        // invoke secured service
      }
    };
    
    SecurityContext context = SecurityContextHolder.getContext();
    DelegatingSecurityContextRunnable wrappedRunnable =
        new DelegatingSecurityContextRunnable(originalRunnable, context);
    
    new Thread(wrappedRunnable).start();
    

    上面的代码执行以下步骤:

    • 创建一个将调用我们受保护服务的 `Runnable`。请注意,它不知道 Spring Security。
    • 从 `SecurityContextHolder` 获取我们想要使用的 `SecurityContext`,并初始化 `DelegatingSecurityContextRunnable`。
    • 使用 `DelegatingSecurityContextRunnable` 来创建一个 `Thread`。
    • 启动我们创建的 `Thread`。

    由于使用 `SecurityContextHolder` 中的 `SecurityContext` 来创建 `DelegatingSecurityContextRunnable` 非常常见,因此提供了一个快捷构造函数。以下代码与上面的代码相同:

    
    Runnable originalRunnable = new Runnable() {
      public void run() {
        // invoke secured…

    Spring Framework 3.2 正式发布

    工程 | Juergen Hoeller | 2012年12月13日 | ...

    亲爱的 Spring 社区:

    在 Spring Framework 3.1 发布一年后,我很高兴地宣布 Spring Framework 3.2 现在已正式可用!

    我们建议从所有先前的 Spring 版本升级,特别是从 Spring Framework 3.1.x 升级,因为这是它的直接继承版本。

    正如之前讨论过的,Spring Framework 3.2 的主要功能包括:

    • 在框架内部以及通过升级到 CGLIB 3.0、ASM 4.0(我们现在已内联)和 AspectJ 1.7 来优化 Java SE 7 支持
    • 框架内的并发优化,尽可能避免使用同步——特别是对于作用域 Bean/原型 Bean。
    • 允许将 @Autowired 和 @Value 用作元注解,例如,与特定的限定符结合使用来构建自定义注入注解。
    • 支持在 @Configuration 类中使用自定义 @Bean 定义注解,例如,与特定的限定符、@Lazy、@Primary 等结合使用。
    • 基于 Servlet 3.0 的异步 MVC 处理……

    本周 Spring 动态 - 2012 年 12 月 11 日

    工程 | Josh Long | 2012 年 12 月 11 日 | ...

    欢迎来到另一期《本周 Spring 动态》!我们周末结束了 SpringOne China,今天在参加两个活动中的第一个,分别是位于班加罗尔的 SpringOne India 和海得拉巴的 SpringOne。这些活动非常精彩!特别是,我们很享受那里的美食、风景以及前来参加的了不起的社区成员!

    一位与会者在我发表演讲关于 Spring on Cloud Foundry 时为我拍的照片。 Mark Pollack 博士、我、Gary Russell 和 Chris Richardson 在北京一家餐厅。
    我在班加罗尔发表演讲时,人们涌向讲台提问和打招呼。我请最后一批人与我合影。 从左到右:Gary Russel、Josh Long、Jennifer Hickey、Jeremy Grelle、Oliver Gierke、Chris Richardson — 整个 SpringOne India 的阵容。

     

      <LI> Roy Clarkson has announced <a href = "http://www.springsource.org/spring-android/news/1.0.1-released">Spring for Android 1.0</a>, which     adds support for Jackson 2.x in <code>RestTemplate</code> through the new <code>MappingJackson2HttpMessageConverter</code>. It also addresses several bugs and compatibility issues with <code>RestTemplate</code> and Android Jelly Bean.</LI>
      <LI>The <a href="http://www.tomcatexpert.com">TomcatExpert.com portal</a> has a nice post on Spring Insight Developer to analyze code, <a href="http://www.springsource.org/node/3761">install it with Tomcat, and…

      获取 Spring 新闻通讯

      通过 Spring 新闻通讯保持联系

      订阅

      领先一步

      VMware 提供培训和认证,助您加速进步。

      了解更多

      获得支持

      Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件,只需一份简单的订阅。

      了解更多

      即将举行的活动

      查看 Spring 社区所有即将举行的活动。

      查看所有