@Controller public class MainController extends Object
| 构造器和说明 |
|---|
MainController() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clear()
由于线程池的使用与threadLocal冲突,前后需要清理缓存
|
void |
invoke(Object bean,
Method method) |
Object |
othersProcessor(javax.servlet.http.HttpServletRequest request)
非法请求处理器
|
Object |
proxyProcessor(javax.servlet.http.HttpServletRequest request,
String service,
String method)
agile框架处理器
|
@ResponseBody
@RequestMapping(value={"/","/*","/*/*/*/**"})
public Object othersProcessor(javax.servlet.http.HttpServletRequest request)
throws NoSuchRequestServiceException
NoSuchRequestServiceException@RequestMapping(value={"/${agile.module-name:api}/{agileInParamService}/{agileInParamMethod}","/${agile.module-name:api}/{agileInParamService}/{agileInParamMethod}/**","/{agileInParamService}/{agileInParamMethod}"})
public Object proxyProcessor(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="agileInParamService")
String service,
@PathVariable(value="agileInParamMethod")
String method)
throws NoSuchRequestServiceException,
NoSuchRequestMethodException
service - 服务名method - 方法名NoSuchRequestServiceExceptionNoSuchRequestMethodExceptionpublic static void clear()
@Transactional(rollbackFor=java.lang.Exception.class) public void invoke(Object bean, Method method) throws Throwable
ThrowableCopyright © 2022. All rights reserved.