遇到两个报错: 第一个权限问题报错,好解决 startForeground requires android.permission.FOREGROUND_SERVICE Manifest给下权限就行 <manifest ...> ... <uses-permission android:name=" ...
分类:
移动开发 时间:
2021-02-18 13:21:34
阅读次数:
0
#异常处理 异常处理 在公共配置模块添加异常处理器配置类 @ControllerAdvice @Slf4j public class GlobalExceptionHandler { @ExceptionHandler(Exception.class) //指定出现什么异常执行这个方法,此处指定的是 ...
分类:
其他好文 时间:
2021-02-15 12:12:59
阅读次数:
0
public class NIOFileChannel01 { public static void main(String[] args) throws Exception { String str = "hello,帅锅"; //创建一个输出流->channel FileOutputStream ...
分类:
Web程序 时间:
2021-02-15 12:01:12
阅读次数:
0
搭建SSM小demo,运行的时候页面显示如下500错误: HTTP状态 500 - 内部服务器错误 类型 异常报告 消息 Request processing failed; nested exception is org.apache.ibatis.binding.BindingException ...
分类:
Web程序 时间:
2021-02-10 13:30:04
阅读次数:
0
Oracle表连接方法有四种: 排序合并连接(Sort Merge Join) 嵌套循环连接(Nested Loops Join) 哈希连接(Hash Join) 笛卡尔积(Cartesian Product) 排序合并连接(Sort Merge Join) 排序合并连接是将连接的两个表使用连接列排 ...
分类:
其他好文 时间:
2021-02-09 12:42:10
阅读次数:
0
##思路 将fontawesome-webfont.ttf文件添加到项目资源中 将字体自动添加到内存中,无需安装字体,易于部署 自动绘制字体图标图片 ##IconHelper public sealed class IconHelper { public static Image GetFontIm ...
MySQL 嵌套事务、PHP+MySQL嵌套事务、ThinkPHP 嵌套事务、Laravel 嵌套事务 在MySQL的官方文档中有明确的说明不支持嵌套事务: Transactions cannot be nested. This is a consequence of the implicit co ...
分类:
数据库 时间:
2021-02-08 12:20:07
阅读次数:
0
备用: 在调试一个前后端分离的项目,发现登录成功后已经把信息保存到session中了,再从session中取得当前用户信息的时候发现取不到,debug发现sessionId已经变了,自己网上查了很多资料,并不准确, 把自己的解决分享给大家: 后端拦截器: //拦截器添加跨域支持(如果是web.xml ...
分类:
其他好文 时间:
2021-02-05 10:40:40
阅读次数:
0
import java.io.ByteArrayOutputStream;import java.io.IOException; import java.io.InputStream; private byte[] toByteArray(InputStream input) throws IOEx ...
分类:
其他好文 时间:
2021-02-05 10:39:31
阅读次数:
0
SSH: Disconnecting configuration [192.168.2.68] ... ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after 120,0 ...
分类:
其他好文 时间:
2021-02-05 10:37:04
阅读次数:
0