关于spring.net的配置问题 请教高手!!
配置文件中写的对象 必须被当前工程引用么?
也就是说程序都编译好后 我按照接口重新开发一个类库 直接修改配置文件 能不能动态创建这个类的对象 还是说这个类库必须被主工程引用才可以?
配置文件如下:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
</sectionGroup>
</configSections>
<spring>
<context>
<resource uri="config://spring/objects"/>
</context>
<objects xmlns="http://www.springframework.net">
<description>An example that demonstrates simple IoC features.</description>
<object name="test1" type="MyIocComConfigTest1.CComConfigTest1, MyIocComConfigTest1"> </object>
<object name="test2" type="MyIocComConfigTest2.CComConfigTest2, MyIocComConfigTest2"> </object>
</objects>
</spring>
</configuration>
提示错误:
Error creating context 'spring.root': Could not load type from string value 'MyIocComConfigTest1.CComConfigTest1, MyIocComConfigTest1'.