English 中文(简体)
说明是否还包含着像春天这样的框架的夫妻法典?
原标题:Do annotations also couples code with framework like spring?

由于《刑法》与《春天》之间不一定是夫妇,因此不允许扩大基于春季的界面。 同样的理由也适用于说明? 我们需要在使用这些产品之前将其进口到源代码中。

最佳回答

我用与春天交际的春天特别说明来看待课程。 我声称,进口和使用春天议程与春天挂钩是不言而喻的(尽管你可以轻而易举地重新界定这些说明,以建立一个非环绕的环境)。 我的关键是:完全与春季挂钩。

较之重组等级或重复非标识接口的功能,更容易检查和处理说明。 假设你希望将说明留在议程内,并可能重复说明背后的逻辑,那么(海事组织)这样做比重新调整任何类别/内层级功能类似的功能更容易。

The other key is the word "unnecessarily". I have yet to create a Spring application and need those classes outside of a Spring environment. When I have (generally for exposed APIs) it s been at the interface level. Note, however, that I knew from the onset that this exposure would exist and I planned accordingly.

问题回答

Most would argue that this does not. While you ve imported those annotations needed to ensure that Spring handles the request or wraps the transactions, you are not extending or implementing a specific class or interface.

想到这种方式,当你发表附加说明时,你会再次告诉春天,根据你的配置做各种事情。 介绍这些说明,以及你刚才采用某种方法的公法协会。 它是一个完全有效的物体,没有这些说明,它可能不做你所希望的(即处理请求),但《守则》仍然遵循与说明相同的逻辑——现在,你有责任适当呼吁。





相关问题
array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...

热门标签