Tag:beanshell

  • Implementation of java interface example with BeanShell through spring

    Time:2020-10-26

    explain 1. Let Java execute dynamic code through script language2. The script language can be proxy to java interface implementation class with spring3. Spring 2.5.6 supports three scripting languages ruby, groovy and BeanShell4. In the example, spring is combined with BeanShell5. Rely on spring 2.5.6, bsh-2.0b4 Copy codeThe code is as follows: import org.junit.Test;import org.springframework.scripting.bsh.BshScriptUtils; […]