如果您需要在cloudopt-next-web中支持spring的话,您只需要配置好cloudopt-next-web的配置文件然后在服务器启动前增加插件即可。需要用spring管理的xml用英文逗号分开。
在使用前请先自行引用相应的依赖,请自行添加版本号。
1. <dependency>
2. <groupId>net.cloudopt.next</groupId>
3. <artifactId>cloudopt-next-spring</artifactId>
4. </dependency>
1. {
2. "spring": {
3. "xml": "classpath:applicationContext.xml,classpath:applicationContext2.xml"
4. }
5. }
1. fun main(args: Array<String>) {
2. CloudoptServer.addPlugin(SpringPlugin())
3. CloudoptServer.run(TestCase::class)
4. }
1. fun main(args: Array<String>) {
2. CloudoptServer.addPlugin(SpringPlugin());
3. CloudoptServer.run(TestCase.class);
4. }
