码迷,mamicode.com
首页 >  
搜索关键字:exception throws throw    ( 16271个结果
java:分块上传 和 合并分块
我们上传文件时,当文件比较大的时候,我们往往采用前端将大文件分割,分块多次上传给后端,全部上传成功再合并分块的方式上传。(这里仅介绍后端操作) import com.sundear.model.exception.ServiceException;import lombok.extern.slf4j ...
分类:编程语言   时间:2021-05-25 18:35:30    阅读次数:0
用户登录信息存session
UserInfoHolder --也可以换成user /** *用户登录 返回角色ABCF,根据角色判断可查看哪个页面 * *///@ACL@PostMapping("/userLogin")public BaseResponse userLogin(@RequestBody User user, ...
分类:其他好文   时间:2021-05-25 18:35:11    阅读次数:0
Mybatis执行Update返回行数为负数
获取mybatis的update行数,总是返回负数。后来在官网上找到原因,是由于defaultExecutorType的引起的,defaultExecutorType有三个执行器SIMPLE、REUSE和BATCH。其中BATCH可以批量更新操作缓存SQL以提高性能,但是有个缺陷就是无法获取upda ...
分类:其他好文   时间:2021-05-24 17:09:38    阅读次数:0
.Net 5 调用 HttpContext.SignInAsync 报错 Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties) 解决
An unhandled exception occurred while processing the request. InvalidOperationException: No authenticationScheme was specified, and there was no Defau ...
分类:Web程序   时间:2021-05-24 16:10:46    阅读次数:0
使用eclipse建立webservice服务和客户端
平时在练习使用webservice互相传数据时,可以使用eclipse建立一个服务端发布WSDL,当然自身也可以建立客户端。 Web service是一个平台独立的,低耦合的,自包含的、基于可编程的web的应用程序,可使用开放的XML(标准通用标记语言下的一个子集)标准来描述、发布、发现、协调和配置 ...
分类:Web程序   时间:2021-05-24 15:54:10    阅读次数:0
VMware Workstation12 安装 Centos8.3
安装出现错误:kernel panic not syncing:fatal exception 背景:Hpye-V已经关闭,bcdedit /set hypervisorlaunchtype off也关闭了服务,安装Centos7成功并能运行 解决:【编辑虚拟机设置】移除【USB】【声卡】【打印机】 ...
分类:系统相关   时间:2021-05-24 14:34:13    阅读次数:0
实现word在线预览和编辑
目的 实现word文件的预览以及简单的在线编辑 工具 ckeditor5是一款富文本编辑器,它可以实现常用word的操作,下载安装网上一大堆就不再这细说了。 原理 ckeditor可以提前使用setData函数载入数据,但如果直接载入word格式的文件会把word文件的特征消失掉,但通过研究发现他其 ...
分类:其他好文   时间:2021-05-24 14:15:05    阅读次数:0
CountDownLatch
countDownLatch这个类使一个线程等待其他线程各自执行完毕后再执行。 public class CountDownLatchDemo { public static void main(String[] args) throws InterruptedException{ /** * * ...
分类:其他好文   时间:2021-05-24 13:31:31    阅读次数:0
两阶段终止模式volatile版本
public class Test { public static void main(String[] args) throws InterruptedException { TwoPhaseTermination tpt = new TwoPhaseTermination(); tpt.star ...
分类:其他好文   时间:2021-05-24 13:06:08    阅读次数:0
多个线程操作一个变量(synchronized)
public class WindowSell2 { private int num=0; public synchronized void increade() throws InterruptedException{ while (num != 0){ this.wait(); } num++; ...
分类:编程语言   时间:2021-05-24 12:36:19    阅读次数:0
16271条   上一页 1 ... 8 9 10 11 12 ... 1628 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!