Spring 3.0禁用@Inject批注处理 [英] Spring 3.0 Disable @Inject Annotation Processing

查看:54
本文介绍了Spring 3.0禁用@Inject批注处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以禁用Spring 3.0的 @Inject 批注处理?

Is there a way to disable the @Inject annotation processing of spring 3.0?

我正在尝试将CDI @Conversation 范围与spring一起使用,但是当涉及到

I'm trying to use the CDI @Conversation Scope together with spring, but when it comes to

@Inject
private Conversation conversation;

spring尝试自动连接显然失败的对话。

spring tries to autowire the conversation which obviously failed.

推荐答案

我认为您不能。但是spring有自己的对话支持-查看spring网络流。

I don't think you can. But spring has its own conversation support - take a look at spring web flow.

这篇关于Spring 3.0禁用@Inject批注处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆