由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Spring Framework magic
相关主题
找工作时Spring面试一般问题会怎么问?对J2EE的几个迷惑 (转载)
Dependency InjectionJavaServer Faces 和 Java Servlet
spring frame work questionspring Annotation based configuration
java 依赖注入和反射是必须掌握的吗?Spring 工作机会好象不多啊!
Web framework comparisonany good j2ee book?
JSF和MVC model 2的问题问下Java开源平台趋势
Oracle and Sunservlet到底是啥玩意
最好的Java Enterprise Development FrameworkSpring JBOSS
相关话题的讨论汇总
话题: spring话题: jee话题: class话题: public
进入Java版参与讨论
1 (共1页)
t*********e
发帖数: 630
1
The simplest example to demonstrate dependency injection in Spring Framework
. The main method isn't related to mockMessageSercvice() in any way, and
there is no any configuration file defined in the project. The main method
is able to print out "Hello World". How does this magic occur? @
Configuration & @ComponentScan work together to do the trick. It takes time
to just develop a basic understanding of how this little example works for
those who are new to the spring framework field.
Class 1:
package sp.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.*;
@Configuration
@ComponentScan
public class Application {
@Bean
MessageService mockMessageService() {
return new MessageService() {
public String getMessage() {
return "Hello World!";
}
};
}
public static void main(String[] args) {
ApplicationContext context =
new AnnotationConfigApplicationContext(Application.class);
MessagePrinter printer = context.getBean(MessagePrinter.class);
printer.printMessage();
}
}
Class 2:
package sp.test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class MessagePrinter {
final private MessageService service;
@Autowired
public MessagePrinter(MessageService service) {
this.service = service;
}
public void printMessage() {
System.out.println(this.service.getMessage());
}
}
Class 3:
public interface MessageService {
String getMessage();
}
z****e
发帖数: 54598
2
当你启动spring framework的时候
framework会扫描你所有的pkg,尤其是class
然后自动initiate&index所有的beans
这个时候,因为你的@Autowire被扫描到了
spring会自动initiate所有的beans
然后符合@Autowired条件的bean就那么一个
所以每次用到,都会自动inject进去
当然,如果有多个beans符合条件,你就需要定义了
所以spring的启动并不快没发现?
t*********e
发帖数: 630
3
container 自动做更多的工作,而且 behind the scene. 这会不会使 code debugging
变得更困难?
另外,这种直接使用 @inject annotation,不就是 composition, 为什么要使用 @
Inject 这新玩意?
@javax.enterprise.context.RequestScoped
public class CurrencyConverter { ... }
public class MyServlet extends HttpServlet {
@Inject CurrencyConverter cc;
...
}

【在 z****e 的大作中提到】
: 当你启动spring framework的时候
: framework会扫描你所有的pkg,尤其是class
: 然后自动initiate&index所有的beans
: 这个时候,因为你的@Autowire被扫描到了
: spring会自动initiate所有的beans
: 然后符合@Autowired条件的bean就那么一个
: 所以每次用到,都会自动inject进去
: 当然,如果有多个beans符合条件,你就需要定义了
: 所以spring的启动并不快没发现?

z****e
发帖数: 54598
4
因为memory leak的风险
虽然java控制了一部分memory
部分防止了memory leak
但是无法实现绝对的防止
core java最常见的memory leak就是循环引用
而其中一个引用没有及时得到释放,导致使用内存越来越大
最后崩溃,而java一直都提倡不去管理内存
而如果发生了memory leak,那就不得不去思考引用的关系
要从根节点思考到底哪里没有释放,那就麻烦了
用inject之后
spring控制beans的生命周期,什么时候初始化,什么时候释放
spring说了算,这样就杜绝了memory leak的可能性
当然还是很难彻底干掉memory leak,但是相比之前好很多了

debugging

【在 t*********e 的大作中提到】
: container 自动做更多的工作,而且 behind the scene. 这会不会使 code debugging
: 变得更困难?
: 另外,这种直接使用 @inject annotation,不就是 composition, 为什么要使用 @
: Inject 这新玩意?
: @javax.enterprise.context.RequestScoped
: public class CurrencyConverter { ... }
: public class MyServlet extends HttpServlet {
: @Inject CurrencyConverter cc;
: ...
: }

t*********e
发帖数: 630
5
查了一下,这也是 JEE 7 的卖点之一:
Context Dependency Injection
Context Dependency Injection, introduced in Java EE 6, has been enhanced and
is expected to be more broadly utilized by Java EE platform technologies. "
[CDI] for the Java EE platform is one of several Java EE 6 features that
help to knit together the Web tier and the transactional tier of the Java EE
platform. CDI is a set of services that, used together, make it easy for
developers to use enterprise beans along with JavaServer Faces technology in
Web applications," according to Oracle.
这是 spring 影响了 JEE,还是 JEE 影响了 Spring? 这些特性都差不多。

【在 z****e 的大作中提到】
: 因为memory leak的风险
: 虽然java控制了一部分memory
: 部分防止了memory leak
: 但是无法实现绝对的防止
: core java最常见的memory leak就是循环引用
: 而其中一个引用没有及时得到释放,导致使用内存越来越大
: 最后崩溃,而java一直都提倡不去管理内存
: 而如果发生了memory leak,那就不得不去思考引用的关系
: 要从根节点思考到底哪里没有释放,那就麻烦了
: 用inject之后

z****e
发帖数: 54598
6
互相影响吧
制定jee标准里面,interface21也就是以前rod johnson创立搞spring的组织
就在jcp的committee里面
spring后来也兼容了jee标准化的annotation
spring可以看作是一个非标准的jee子集

and
"
EE
in

【在 t*********e 的大作中提到】
: 查了一下,这也是 JEE 7 的卖点之一:
: Context Dependency Injection
: Context Dependency Injection, introduced in Java EE 6, has been enhanced and
: is expected to be more broadly utilized by Java EE platform technologies. "
: [CDI] for the Java EE platform is one of several Java EE 6 features that
: help to knit together the Web tier and the transactional tier of the Java EE
: platform. CDI is a set of services that, used together, make it easy for
: developers to use enterprise beans along with JavaServer Faces technology in
: Web applications," according to Oracle.
: 这是 spring 影响了 JEE,还是 JEE 影响了 Spring? 这些特性都差不多。

t*********e
发帖数: 630
7
又看了些材料,有很多 JEE 和 SP 的争论。 说 spring framework 好像在走下坡路了
"
Every time I work on a Spring project, I start mumbling under my breath. I
know I will have to go through long and convoluted XML files to determine
what is going on with the project. I also know that my project will have
approximately 10,000 dependencies and that the generated WAR file is going
to be a monster.
When working with Java EE, most of the services I need are provided by the
application server. Therefore, the number of required dependencies is
minimal. In most cases, Java EE provides configuration by exception, meaning
there is very little configuration to be done, and sensible defaults are
used in the vast majority of cases. When configuration is needed, it is
usually done through annotations, which allows me to get the whole picture
just by looking at the source code, without having to navigate back and
forth between XML configuration files and source code.
"

【在 z****e 的大作中提到】
: 互相影响吧
: 制定jee标准里面,interface21也就是以前rod johnson创立搞spring的组织
: 就在jcp的committee里面
: spring后来也兼容了jee标准化的annotation
: spring可以看作是一个非标准的jee子集
:
: and
: "
: EE
: in

g*****g
发帖数: 34805
8
我看你还没有决定用什么架构的能力,还是把spring好好学学,如果需要jee再现学也
就几天的事情。

meaning

【在 t*********e 的大作中提到】
: 又看了些材料,有很多 JEE 和 SP 的争论。 说 spring framework 好像在走下坡路了
: "
: Every time I work on a Spring project, I start mumbling under my breath. I
: know I will have to go through long and convoluted XML files to determine
: what is going on with the project. I also know that my project will have
: approximately 10,000 dependencies and that the generated WAR file is going
: to be a monster.
: When working with Java EE, most of the services I need are provided by the
: application server. Therefore, the number of required dependencies is
: minimal. In most cases, Java EE provides configuration by exception, meaning

t*********e
发帖数: 630
9
说的是哈。最近看了些,渐渐有点眉目了。
J2EE 出来后,饱受诟病,后来就出现了 spring, 里面有好几个创新,包括
dependency injection. JEE 也还没有死,尤其是 JEE 6 出现了后, spring 里面的
好几个特性都被支持了,所以这两年有呼声说要从 spring 转向 JEE,原因在于其标准
化及其一站式服务。另外,就像 maven 设计思想一样, JEE 里面 convention takes
precedence over configuration, 需要用户配置的东西大大减少。不过,很多公司的
程序员都已经很熟悉 spring,反而对 JEE 不熟悉,除非 JEE 能够提供很明显的优良
特性,否则很难让现在 spring 的用户转向 JEE,尤其是很难说服公司的 engineering
管理层作出这一转变。JEE 里面两个主要组件,JSF 和 EJB 用户的反映都不很好,所
以在其竞争中也让其扣分。JSF 主要是抱怨其语法太复杂,用的 tag 太多。debate 仍
在继续 ...
打算就在 JBoss 里面折腾 spring 好了。openshift 不错,让选择和配置这些不同的
组件和框架都很容易,文档也做得不错,还有 forum,虽然人气不是特别足,但已经不
错了。

【在 g*****g 的大作中提到】
: 我看你还没有决定用什么架构的能力,还是把spring好好学学,如果需要jee再现学也
: 就几天的事情。
:
: meaning

s***o
发帖数: 2191
10
这些呼声我也看了不少,很是怀疑有多少是那几个想卖application server的公司拿钱
砸出来的。最新的wildfly我试了一下,感觉还真不错。但是application server 这种
all-or-nothing的配置方式我还是不太喜欢。
Spring搭配jboss感觉有点怪。实践中用的多吗?

takes
engineering

【在 t*********e 的大作中提到】
: 说的是哈。最近看了些,渐渐有点眉目了。
: J2EE 出来后,饱受诟病,后来就出现了 spring, 里面有好几个创新,包括
: dependency injection. JEE 也还没有死,尤其是 JEE 6 出现了后, spring 里面的
: 好几个特性都被支持了,所以这两年有呼声说要从 spring 转向 JEE,原因在于其标准
: 化及其一站式服务。另外,就像 maven 设计思想一样, JEE 里面 convention takes
: precedence over configuration, 需要用户配置的东西大大减少。不过,很多公司的
: 程序员都已经很熟悉 spring,反而对 JEE 不熟悉,除非 JEE 能够提供很明显的优良
: 特性,否则很难让现在 spring 的用户转向 JEE,尤其是很难说服公司的 engineering
: 管理层作出这一转变。JEE 里面两个主要组件,JSF 和 EJB 用户的反映都不很好,所
: 以在其竞争中也让其扣分。JSF 主要是抱怨其语法太复杂,用的 tag 太多。debate 仍

相关主题
JSF和MVC model 2的问题对J2EE的几个迷惑 (转载)
Oracle and SunJavaServer Faces 和 Java Servlet
最好的Java Enterprise Development Frameworkspring Annotation based configuration
进入Java版参与讨论
z****e
发帖数: 54598
11
多,因为多数人对spring的api更熟
但是真的没有必要这么搞

【在 s***o 的大作中提到】
: 这些呼声我也看了不少,很是怀疑有多少是那几个想卖application server的公司拿钱
: 砸出来的。最新的wildfly我试了一下,感觉还真不错。但是application server 这种
: all-or-nothing的配置方式我还是不太喜欢。
: Spring搭配jboss感觉有点怪。实践中用的多吗?
:
: takes
: engineering

g*****g
发帖数: 34805
12
People ends up using spring within ejb server because spring provides many
useful libraries. And many 3rd libraries are dependent on spring anyway.

【在 z****e 的大作中提到】
: 多,因为多数人对spring的api更熟
: 但是真的没有必要这么搞

t*********e
发帖数: 630
13
The simplest example to demonstrate dependency injection in Spring Framework
. The main method isn't related to mockMessageSercvice() in any way, and
there is no any configuration file defined in the project. The main method
is able to print out "Hello World". How does this magic occur? @
Configuration & @ComponentScan work together to do the trick. It takes time
to just develop a basic understanding of how this little example works for
those who are new to the spring framework field.
Class 1:
package sp.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.*;
@Configuration
@ComponentScan
public class Application {
@Bean
MessageService mockMessageService() {
return new MessageService() {
public String getMessage() {
return "Hello World!";
}
};
}
public static void main(String[] args) {
ApplicationContext context =
new AnnotationConfigApplicationContext(Application.class);
MessagePrinter printer = context.getBean(MessagePrinter.class);
printer.printMessage();
}
}
Class 2:
package sp.test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class MessagePrinter {
final private MessageService service;
@Autowired
public MessagePrinter(MessageService service) {
this.service = service;
}
public void printMessage() {
System.out.println(this.service.getMessage());
}
}
Class 3:
public interface MessageService {
String getMessage();
}
z****e
发帖数: 54598
14
当你启动spring framework的时候
framework会扫描你所有的pkg,尤其是class
然后自动initiate&index所有的beans
这个时候,因为你的@Autowire被扫描到了
spring会自动initiate所有的beans
然后符合@Autowired条件的bean就那么一个
所以每次用到,都会自动inject进去
当然,如果有多个beans符合条件,你就需要定义了
所以spring的启动并不快没发现?
t*********e
发帖数: 630
15
container 自动做更多的工作,而且 behind the scene. 这会不会使 code debugging
变得更困难?
另外,这种直接使用 @inject annotation,不就是 composition, 为什么要使用 @
Inject 这新玩意?
@javax.enterprise.context.RequestScoped
public class CurrencyConverter { ... }
public class MyServlet extends HttpServlet {
@Inject CurrencyConverter cc;
...
}

【在 z****e 的大作中提到】
: 当你启动spring framework的时候
: framework会扫描你所有的pkg,尤其是class
: 然后自动initiate&index所有的beans
: 这个时候,因为你的@Autowire被扫描到了
: spring会自动initiate所有的beans
: 然后符合@Autowired条件的bean就那么一个
: 所以每次用到,都会自动inject进去
: 当然,如果有多个beans符合条件,你就需要定义了
: 所以spring的启动并不快没发现?

z****e
发帖数: 54598
16
因为memory leak的风险
虽然java控制了一部分memory
部分防止了memory leak
但是无法实现绝对的防止
core java最常见的memory leak就是循环引用
而其中一个引用没有及时得到释放,导致使用内存越来越大
最后崩溃,而java一直都提倡不去管理内存
而如果发生了memory leak,那就不得不去思考引用的关系
要从根节点思考到底哪里没有释放,那就麻烦了
用inject之后
spring控制beans的生命周期,什么时候初始化,什么时候释放
spring说了算,这样就杜绝了memory leak的可能性
当然还是很难彻底干掉memory leak,但是相比之前好很多了

debugging

【在 t*********e 的大作中提到】
: container 自动做更多的工作,而且 behind the scene. 这会不会使 code debugging
: 变得更困难?
: 另外,这种直接使用 @inject annotation,不就是 composition, 为什么要使用 @
: Inject 这新玩意?
: @javax.enterprise.context.RequestScoped
: public class CurrencyConverter { ... }
: public class MyServlet extends HttpServlet {
: @Inject CurrencyConverter cc;
: ...
: }

t*********e
发帖数: 630
17
查了一下,这也是 JEE 7 的卖点之一:
Context Dependency Injection
Context Dependency Injection, introduced in Java EE 6, has been enhanced and
is expected to be more broadly utilized by Java EE platform technologies. "
[CDI] for the Java EE platform is one of several Java EE 6 features that
help to knit together the Web tier and the transactional tier of the Java EE
platform. CDI is a set of services that, used together, make it easy for
developers to use enterprise beans along with JavaServer Faces technology in
Web applications," according to Oracle.
这是 spring 影响了 JEE,还是 JEE 影响了 Spring? 这些特性都差不多。

【在 z****e 的大作中提到】
: 因为memory leak的风险
: 虽然java控制了一部分memory
: 部分防止了memory leak
: 但是无法实现绝对的防止
: core java最常见的memory leak就是循环引用
: 而其中一个引用没有及时得到释放,导致使用内存越来越大
: 最后崩溃,而java一直都提倡不去管理内存
: 而如果发生了memory leak,那就不得不去思考引用的关系
: 要从根节点思考到底哪里没有释放,那就麻烦了
: 用inject之后

z****e
发帖数: 54598
18
互相影响吧
制定jee标准里面,interface21也就是以前rod johnson创立搞spring的组织
就在jcp的committee里面
spring后来也兼容了jee标准化的annotation
spring可以看作是一个非标准的jee子集

and
"
EE
in

【在 t*********e 的大作中提到】
: 查了一下,这也是 JEE 7 的卖点之一:
: Context Dependency Injection
: Context Dependency Injection, introduced in Java EE 6, has been enhanced and
: is expected to be more broadly utilized by Java EE platform technologies. "
: [CDI] for the Java EE platform is one of several Java EE 6 features that
: help to knit together the Web tier and the transactional tier of the Java EE
: platform. CDI is a set of services that, used together, make it easy for
: developers to use enterprise beans along with JavaServer Faces technology in
: Web applications," according to Oracle.
: 这是 spring 影响了 JEE,还是 JEE 影响了 Spring? 这些特性都差不多。

t*********e
发帖数: 630
19
又看了些材料,有很多 JEE 和 SP 的争论。 说 spring framework 好像在走下坡路了
"
Every time I work on a Spring project, I start mumbling under my breath. I
know I will have to go through long and convoluted XML files to determine
what is going on with the project. I also know that my project will have
approximately 10,000 dependencies and that the generated WAR file is going
to be a monster.
When working with Java EE, most of the services I need are provided by the
application server. Therefore, the number of required dependencies is
minimal. In most cases, Java EE provides configuration by exception, meaning
there is very little configuration to be done, and sensible defaults are
used in the vast majority of cases. When configuration is needed, it is
usually done through annotations, which allows me to get the whole picture
just by looking at the source code, without having to navigate back and
forth between XML configuration files and source code.
"

【在 z****e 的大作中提到】
: 互相影响吧
: 制定jee标准里面,interface21也就是以前rod johnson创立搞spring的组织
: 就在jcp的committee里面
: spring后来也兼容了jee标准化的annotation
: spring可以看作是一个非标准的jee子集
:
: and
: "
: EE
: in

g*****g
发帖数: 34805
20
我看你还没有决定用什么架构的能力,还是把spring好好学学,如果需要jee再现学也
就几天的事情。

meaning

【在 t*********e 的大作中提到】
: 又看了些材料,有很多 JEE 和 SP 的争论。 说 spring framework 好像在走下坡路了
: "
: Every time I work on a Spring project, I start mumbling under my breath. I
: know I will have to go through long and convoluted XML files to determine
: what is going on with the project. I also know that my project will have
: approximately 10,000 dependencies and that the generated WAR file is going
: to be a monster.
: When working with Java EE, most of the services I need are provided by the
: application server. Therefore, the number of required dependencies is
: minimal. In most cases, Java EE provides configuration by exception, meaning

相关主题
Spring 工作机会好象不多啊!servlet到底是啥玩意
any good j2ee book?Spring JBOSS
问下Java开源平台趋势j2ee现在流行什么?
进入Java版参与讨论
t*********e
发帖数: 630
21
说的是哈。最近看了些,渐渐有点眉目了。
J2EE 出来后,饱受诟病,后来就出现了 spring, 里面有好几个创新,包括
dependency injection. JEE 也还没有死,尤其是 JEE 6 出现了后, spring 里面的
好几个特性都被支持了,所以这两年有呼声说要从 spring 转向 JEE,原因在于其标准
化及其一站式服务。另外,就像 maven 设计思想一样, JEE 里面 convention takes
precedence over configuration, 需要用户配置的东西大大减少。不过,很多公司的
程序员都已经很熟悉 spring,反而对 JEE 不熟悉,除非 JEE 能够提供很明显的优良
特性,否则很难让现在 spring 的用户转向 JEE,尤其是很难说服公司的 engineering
管理层作出这一转变。JEE 里面两个主要组件,JSF 和 EJB 用户的反映都不很好,所
以在其竞争中也让其扣分。JSF 主要是抱怨其语法太复杂,用的 tag 太多。debate 仍
在继续 ...
打算就在 JBoss 里面折腾 spring 好了。openshift 不错,让选择和配置这些不同的
组件和框架都很容易,文档也做得不错,还有 forum,虽然人气不是特别足,但已经不
错了。

【在 g*****g 的大作中提到】
: 我看你还没有决定用什么架构的能力,还是把spring好好学学,如果需要jee再现学也
: 就几天的事情。
:
: meaning

s***o
发帖数: 2191
22
这些呼声我也看了不少,很是怀疑有多少是那几个想卖application server的公司拿钱
砸出来的。最新的wildfly我试了一下,感觉还真不错。但是application server 这种
all-or-nothing的配置方式我还是不太喜欢。
Spring搭配jboss感觉有点怪。实践中用的多吗?

takes
engineering

【在 t*********e 的大作中提到】
: 说的是哈。最近看了些,渐渐有点眉目了。
: J2EE 出来后,饱受诟病,后来就出现了 spring, 里面有好几个创新,包括
: dependency injection. JEE 也还没有死,尤其是 JEE 6 出现了后, spring 里面的
: 好几个特性都被支持了,所以这两年有呼声说要从 spring 转向 JEE,原因在于其标准
: 化及其一站式服务。另外,就像 maven 设计思想一样, JEE 里面 convention takes
: precedence over configuration, 需要用户配置的东西大大减少。不过,很多公司的
: 程序员都已经很熟悉 spring,反而对 JEE 不熟悉,除非 JEE 能够提供很明显的优良
: 特性,否则很难让现在 spring 的用户转向 JEE,尤其是很难说服公司的 engineering
: 管理层作出这一转变。JEE 里面两个主要组件,JSF 和 EJB 用户的反映都不很好,所
: 以在其竞争中也让其扣分。JSF 主要是抱怨其语法太复杂,用的 tag 太多。debate 仍

z****e
发帖数: 54598
23
多,因为多数人对spring的api更熟
但是真的没有必要这么搞

【在 s***o 的大作中提到】
: 这些呼声我也看了不少,很是怀疑有多少是那几个想卖application server的公司拿钱
: 砸出来的。最新的wildfly我试了一下,感觉还真不错。但是application server 这种
: all-or-nothing的配置方式我还是不太喜欢。
: Spring搭配jboss感觉有点怪。实践中用的多吗?
:
: takes
: engineering

g*****g
发帖数: 34805
24
People ends up using spring within ejb server because spring provides many
useful libraries. And many 3rd libraries are dependent on spring anyway.

【在 z****e 的大作中提到】
: 多,因为多数人对spring的api更熟
: 但是真的没有必要这么搞

a******m
发帖数: 57
25
想请问一下这个帖子里面的家伙说的“fresh graduate说自己会spring纯属扯淡”是什
么意思?
http://www.mitbbs.com/clubarticle_t/biojailbreak/145347.html
小弟之前在java版一直潜水,和各位大牛们学了不少,现在正在学习用spring做web
app。
T*********g
发帖数: 496
26
求解释 啥是 core java?JDK?

【在 z****e 的大作中提到】
: 因为memory leak的风险
: 虽然java控制了一部分memory
: 部分防止了memory leak
: 但是无法实现绝对的防止
: core java最常见的memory leak就是循环引用
: 而其中一个引用没有及时得到释放,导致使用内存越来越大
: 最后崩溃,而java一直都提倡不去管理内存
: 而如果发生了memory leak,那就不得不去思考引用的关系
: 要从根节点思考到底哪里没有释放,那就麻烦了
: 用inject之后

T*********g
发帖数: 496
27
spring只不过是对app server里提供的功能从编程接口上做了层优化。没app server它
啥也不是。所以 spring 和 JBoss的组合满大街都是。

【在 s***o 的大作中提到】
: 这些呼声我也看了不少,很是怀疑有多少是那几个想卖application server的公司拿钱
: 砸出来的。最新的wildfly我试了一下,感觉还真不错。但是application server 这种
: all-or-nothing的配置方式我还是不太喜欢。
: Spring搭配jboss感觉有点怪。实践中用的多吗?
:
: takes
: engineering

r***y
发帖数: 4379
28
乱说
老鼻子项目用 spring 做普通 app.

【在 T*********g 的大作中提到】
: spring只不过是对app server里提供的功能从编程接口上做了层优化。没app server它
: 啥也不是。所以 spring 和 JBoss的组合满大街都是。

a******m
发帖数: 57
29
想请问一下这个帖子里面的家伙说的“fresh graduate说自己会spring纯属扯淡”是什
么意思?
http://www.mitbbs.com/clubarticle_t/biojailbreak/145347.html
小弟之前在java版一直潜水,和各位大牛们学了不少,现在正在学习用spring做web
app。
T*********g
发帖数: 496
30
求解释 啥是 core java?JDK?

【在 z****e 的大作中提到】
: 因为memory leak的风险
: 虽然java控制了一部分memory
: 部分防止了memory leak
: 但是无法实现绝对的防止
: core java最常见的memory leak就是循环引用
: 而其中一个引用没有及时得到释放,导致使用内存越来越大
: 最后崩溃,而java一直都提倡不去管理内存
: 而如果发生了memory leak,那就不得不去思考引用的关系
: 要从根节点思考到底哪里没有释放,那就麻烦了
: 用inject之后

相关主题
.Net developer doing JavaDependency Injection
ZK with Spring Web Flowspring frame work question
找工作时Spring面试一般问题会怎么问?java 依赖注入和反射是必须掌握的吗?
进入Java版参与讨论
T*********g
发帖数: 496
31
spring只不过是对app server里提供的功能从编程接口上做了层优化。没app server它
啥也不是。所以 spring 和 JBoss的组合满大街都是。

【在 s***o 的大作中提到】
: 这些呼声我也看了不少,很是怀疑有多少是那几个想卖application server的公司拿钱
: 砸出来的。最新的wildfly我试了一下,感觉还真不错。但是application server 这种
: all-or-nothing的配置方式我还是不太喜欢。
: Spring搭配jboss感觉有点怪。实践中用的多吗?
:
: takes
: engineering

r***y
发帖数: 4379
32
乱说
老鼻子项目用 spring 做普通 app.

【在 T*********g 的大作中提到】
: spring只不过是对app server里提供的功能从编程接口上做了层优化。没app server它
: 啥也不是。所以 spring 和 JBoss的组合满大街都是。

z****e
发帖数: 54598
33
就是你啥额外的libs/jars都不往里面放就是core java了

【在 T*********g 的大作中提到】
: 求解释 啥是 core java?JDK?
1 (共1页)
进入Java版参与讨论
相关主题
Spring JBOSSWeb framework comparison
j2ee现在流行什么?JSF和MVC model 2的问题
.Net developer doing JavaOracle and Sun
ZK with Spring Web Flow最好的Java Enterprise Development Framework
找工作时Spring面试一般问题会怎么问?对J2EE的几个迷惑 (转载)
Dependency InjectionJavaServer Faces 和 Java Servlet
spring frame work questionspring Annotation based configuration
java 依赖注入和反射是必须掌握的吗?Spring 工作机会好象不多啊!
相关话题的讨论汇总
话题: spring话题: jee话题: class话题: public