
java
梅川酷子哥21岁
新手练习中,多多指教
展开
-
pc 电脑web浏览器和Runtime.getRuntime().exec通过usb控制安卓手机打电话挂电话
1、安装adbadb下载地址http://adbshell.com/upload/adb.zipplatform-tools 下载地址https://dl.google.com/android/repository/platform-tools_r31.0.1-windows.zip2、配置adb环境变量执行adb version 表示成功3、使用数据线连接安卓手机,开启调试模式4、使用 Runtime.getRuntime().exec 拨打电...原创 2021-04-02 16:11:37 · 555 阅读 · 0 评论 -
ProceedingJoinPoint is only supported for around advice
ProceedingJoinPoint只能用于环绕通知@AroundJoinPoint适用于@Before@After@AfterReturning@AfterThrowing原创 2021-03-05 17:31:22 · 498 阅读 · 0 评论 -
java下载文件
@RequestMapping("download")public void download(HttpServletResponse response) throws IOException { InputStream input = new FileInputStream(new File("E:\\520200.json")); response.setConten...原创 2020-01-07 17:43:58 · 156 阅读 · 0 评论 -
Async support must be enabled on a servlet and for all filters involved in async request processing
一、报错日志java.lang.IllegalStateException: Async support must be enabled on a servlet and for all filters involved in async request processing. This is done in Java code using the Servlet API or by addi...原创 2019-08-28 16:18:25 · 5366 阅读 · 0 评论 -
i++和++i区别
1、i++ 源码:编译后的class文件:输出02、 ++i源码:编译后的class文件输出1原创 2019-07-18 15:23:07 · 116 阅读 · 0 评论 -
使用HandlerMethodArgumentResolver给Controller注入会员信息
1、在aop中进行校验登录,校验成功后将会员信息保存到ThreadLocal,调用UserContext.setUser(user)方法;UserContext 类:public class UserContext { private static ThreadLocal<User> userContext = new ThreadLocal<User&...原创 2019-05-30 11:15:22 · 10828 阅读 · 2 评论