package com.ruoyi.ucp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;

@Configuration
public class ScriptConfig {
    @Bean
    public ScriptEngine scriptEngine() {

        return new ScriptEngineManager().getEngineByName("nashorn");
    }
}
