Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvc-ioc session 级别获取对象在同一session下总是新生成对象。 #485

Closed
zouooh opened this issue Jul 5, 2013 · 2 comments
Closed
Milestone

Comments

@zouooh
Copy link

zouooh commented Jul 5, 2013

1.dao : {
type : "org.nutz.dao.impl.NutDao",
args : [ {
refer : "dataSource"
} ]
},
2.@IocBy(type=JsonIocProvider.class, args={"dbConfig.js"})
3.Dao dao = Mvcs.getIoc().get(null, "dao");
刷新页面:
qq20130705191919
qq20130705191927.

个人猜测:ioc生成对象后没有保存。
谢谢。

@zozoh
Copy link
Member

zozoh commented Sep 3, 2013

@wendal 是不是 Session 生成新的了呢?

@zozoh zozoh modified the milestones: 1.b.51, 1.b.50 Apr 12, 2014
@zozoh zozoh modified the milestones: 1.b.51, 1.b.52 Oct 12, 2014
@wendal
Copy link
Member

wendal commented Feb 10, 2015

别用session scope

@wendal wendal closed this as completed Feb 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants