Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Guice注释注入如何转换为Spring依赖注入_Spring_Guice - Fatal编程技术网

Guice注释注入如何转换为Spring依赖注入

Guice注释注入如何转换为Spring依赖注入,spring,guice,Spring,Guice,我用Guice设置了这个绑定 bindConstant().annotatedWith( SecurityCookie.class ).to("JSESSIONID"); 我需要迁移到春天。 Spring的等效代码是什么?使用

我用Guice设置了这个绑定

bindConstant().annotatedWith( SecurityCookie.class ).to("JSESSIONID");
我需要迁移到春天。 Spring的等效代码是什么?

使用