170916_Spring英文文档阅读(十)_2.3 Usage scenarios(二)

这里写图片描述

这里写图片描述

transactional

Spring’s declarative transaction management features make the web application fully transactional:

自己的理解:Spring框架的声明事务管理特性使得Web运用程序完全具有了事务性,fully应该是修饰transactional,是否可以翻译为“成熟事务的”?

谷歌翻译:Spring的声明式事务管理功能使Web应用程序完全事务性

完全具有了事务性和完全事务性还是有些不同,完全具有了事务性是完全事务性的超集。

just as it would be if you used EJB container-managed transactions:

自己的理解:就像你使用EJB容器管理事务

关于这句话的问题:“just as”具体的意思是什么?“it would be”在这里翻译为“它将会是”吗?

谷歌翻译:就像使用EJB容器管理的事务一样

All your custom business logic can be implemented with simple POJOs and managed by Spring’s IoC container.

自己的理解:所有你定制的商业逻辑可以被简单的通过Spring的IoC容器管理的POJOs来实现

问题:custom business logic是什么意思?

谷歌翻译:您所有的自定义业务逻辑可以通过简单的POJO来实现,并通过Spring的IoC容器管理。

自己理解的错误之处:“custom business logic”是自定义业务逻辑的意思,“managed by Spring’s IoC container.“ 修饰的是之前的“logic”而不是“POJOs”。

Additional services include support for sending email and validation that is independent of the web layer, which lets you choose where to execute validation rules.

自己的理解:额外的服务包括了对发送邮件以及验证的支持,”that is independent of the web layer”修饰“additional services”表示独立于web层的额外服务,“which lets you choose where to execute validation rules”应该修饰的是“Additional services”表示这个这些额外的服务让你选择了在哪里执行验证规则,前面”that is independent of the web layer”理解错误,”that is independent of the web layer”修饰的是validation,表示独立于web层的验证。

谷歌翻译:附加服务包括支持发送电子邮件和独立于Web层的验证,可让您选择执行验证规则的位置。

Spring’s ORM support is integrated with JPA, Hibernate and JDO; for example, when using Hibernate, you can continue to use your existing mapping files and standard Hibernate SessionFactory configuration.

自己的理解:Spring的ORM支持与JPA(Java Persistence API),Hibernate和JDO(Java Data Object)的集成;例如,当使用Hibernate时,你可以继续使用你已经存在的映射文件和标准的Hibernate的SessionFactory(会话工厂,是个工厂类)配置。

谷歌翻译:Spring的ORM支持与JPA,Hibernate和JDO集成; 例如,使用Hibernate时,可以继续使用现有的映射文件和标准的Hibernate SessionFactory配置。

Form controllers seamlessly integrate the web-layer with the domain model, removing the need for ActionForms or other classes that transform HTTP parameters to values for your domain model.

问题:
“Form”在这句话表示什么意思?

这里写图片描述

注意这里是“Form”,而不是“From”

“Form controllers”这个组合是什么意思?

“Form controllers”:表单控制器。

什么是表单控制器?

引用自:http://blog.csdn.net/rj042/article/details/6907274

这里写图片描述

“seamlessly”是什么意思?

这里写图片描述

自己的理解:表单控制器和领域模型无缝地集成了web层,消除了一些需要,对什么的需要呢?对ActionForms或者其它将HTTP参数转换为你的领域模型的值的类的需要。

谷歌翻译:表单控制器将Web层与域模型无缝集成,消除了将Action参数或将HTTP参数转换为域模型值的其他类的需要。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值