如果您需要在cloudopt-next-web中支持spring的话,您只需要配置好cloudopt-next-web的配置文件然后在服务器启动前增加插件即可。需要用spring管理的xml用英文逗号分开。

    在使用前请先自行引用相应的依赖并在配置文件中配置。

    1. <dependency>
    2. <groupId>net.cloudopt.next</groupId>
    3. <artifactId>cloudopt-next-encrypt</artifactId>
    4. <version>${version}</version>
    5. </dependency>
    6. <dependency>
    7. <groupId>org.springframework</groupId>
    8. <artifactId>spring-context</artifactId>
    9. <version>${version}</version>
    10. </dependency>
    1. {
    2. "spring": {
    3. "xml": "classpath:applicationContext.xml,classpath:applicationContext2.xml"
    4. }
    5. }
    1. fun main(args: Array<String>) {
    2. NextServer.addPlugin(SpringPlugin())
    3. NextServer.run(TestCase::class)
    4. }