Commit 4091be08 by zhouhaibao

[+]java代码

1 parent 98389553
...@@ -20,6 +20,7 @@ import com.glsx.plat.exception.ResultException; ...@@ -20,6 +20,7 @@ import com.glsx.plat.exception.ResultException;
import com.glsx.plat.exception.SystemMessage; import com.glsx.plat.exception.SystemMessage;
import com.glsx.plat.jwt.base.ComJwtUser; import com.glsx.plat.jwt.base.ComJwtUser;
import com.glsx.plat.jwt.util.JwtUtils; import com.glsx.plat.jwt.util.JwtUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.BeanUtils;
import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
...@@ -38,6 +39,7 @@ import java.util.Map; ...@@ -38,6 +39,7 @@ import java.util.Map;
* @date 2019年10月24日 下午2:37:40 * @date 2019年10月24日 下午2:37:40
*/ */
@Service @Service
@Slf4j
public class UserDemoService { public class UserDemoService {
@Resource @Resource
...@@ -157,9 +159,9 @@ public class UserDemoService { ...@@ -157,9 +159,9 @@ public class UserDemoService {
public Object testJava(String user) throws Exception { public Object testJava(String user) throws Exception {
DynamicEngine de = DynamicEngine.getInstance(); DynamicEngine de = DynamicEngine.getInstance();
String source = "user"; log.info("JAVA代码{}",user);
JSONObject jsonObject=new JSONObject(); JSONObject jsonObject=new JSONObject();
jsonObject.put("id",22); jsonObject.put("id",22);
return de.execute("Controller", source, "execute", new Class[]{JSON.class}, new Object[]{jsonObject}); return de.execute("Controller", user, "execute", new Class[]{JSON.class}, new Object[]{jsonObject});
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!