123
This commit is contained in:
1 parent
0df6716cc3
commit
009955d560
25 files changed
+417
-63
No files matched your search
@@ -7,8 +7,10 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("/system/test")
|
||||
public class TestPluginController {
|
||||
@Autowired
|
||||
@@ -17,7 +19,8 @@ public class TestPluginController {
|
||||
@GetMapping(value = "/testPlugin")
|
||||
public AjaxResult testPlugin() {
|
||||
IPluginTest pluginTest = pluginBeanFactory.getBean("pluginDemo", "1.0.0", IPluginTest.class);
|
||||
System.out.println(pluginTest.funcExec("dd"));
|
||||
return AjaxResult.success(pluginTest.funcExec("dd"));
|
||||
String result = pluginTest.funcExec("dd");
|
||||
log.debug("plugin test completed, resultLength={}", result == null ? 0 : result.length());
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user