問題描述
我是 Spring 新手,現(xiàn)在我聽到了很多關(guān)于 Spring Framework 的信息.我有兩組非常具體的問題:
I am new to Spring and now a days I hear a lot about Spring Framework. I have two sets of very specific questions:
第一組:
一般的注解是什么?
What are annotations in general ?
注解的工作原理特別是 Spring 框架?
How does annotations works specifically with Spring framework ?
注解可以在外面使用嗎Spring Framework 還是他們特定于框架?
Can annotations be used outside Spring Framework or are they Framework specific ?
第二組:
Spring Framework的模塊是什么廣泛應用于工業(yè)?
What module of Spring Framework is widely used in Industry ?
我認為是 Spring MVC 但為什么是最常用的模塊,如果是糾正或糾正我?
I think it is Spring MVC but why it is the most used module, if am correct or correct me on this ?
我是 Spring 的新手,因此請隨時編輯這些問題以使其更有意義.
I am newbie to Spring and so feel free to edit this questions to make more sense.
推薦答案
一般的注解是什么?
What are annotations in general?
注釋可以被認為是類的元數(shù)據(jù).
Annotations can be thought of as meta-data for classes.
注釋的工作原理特別是 Spring 框架?
How does annotations works specifically with Spring framework?
Spring 使用注解來替代 XML 進行聲明式配置.有些人不喜歡 XML.
Spring uses annotations as an alternative to XML for declarative configuration. Some people don't like XML.
注解可以在Spring之外使用嗎框架還是它們是框架具體?
Can annotations be used outside Spring Framework or are they Framework specific?
您需要實現(xiàn) JAR 才能使用任何注解,因此如果您使用注解,那么您就是使用 Spring.注解是 Java 5 中引入的一般概念.您也可以自己編寫.
You need the implementation JARs to use any annotation, so if you use the annotations you are using Spring. Annotations are a general idea introduced into Java 5. You can write your own as well.
Spring Framework的模塊是什么廣泛應用于工業(yè)?
What module of Spring Framework is widely used in Industry?
Spring Core 被所有其他模塊使用;因此得名.
Spring Core is used by all the other modules; hence the name.
我認為它是 Spring MVC 但為什么會這樣最常用的模塊,如果正確或請糾正我?
I think it is Spring MVC but why it is the most used module, if am correct or correct me on this ?
絕對不正確.Spring MVC 有很多競爭對手(例如,Struts 1 和 2、JSF、Wicket、Flex 等),因此它并不總是 Web MVC 的首選.并且所有使用 Spring 的應用程序都不是 Web 應用程序.Spring Batch 和 Integration 非常流行且不斷發(fā)展.
Absolutely incorrect. Spring MVC has lots of competitors (e.g., Struts 1 and 2, JSF, Wicket, Flex, etc.), so it's not always the first choice for web MVC. And all apps that use Spring aren't web apps. Spring Batch and Integration are quite popular and growing.
這篇關(guān)于什么是注解以及它們?nèi)绾卧?Spring 這樣的框架中實際工作?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!