编程语言-月排行
在执行脚本添加这一行 source /etc/profile exec nohup java -Xms1024m -Xmx2048m -jar /opt/dev/claimzuul/$JAR_BAO --spring.config.location=/opt/dev/claimzuul/applic ...
问题复现: dict1 = {1:1} dict2 = {1:2} if (dict1.values()[0] < dict2.values()[0]): print(dict1) 这个时候就会报错,原因是dict的value()和key()返回的并不是一个真正的数组,所以,处理方法也很简单,只需要 ...
文件存在在data目录下 @GetMapping(value = "/file/download") public ResponseEntity<FileSystemResource> getFile(@RequestParam String fileName) throws FileNotFoun ...
1.BCryptPasswordEncoder使用之前要加入依赖 如果是SSM加入的依赖 <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifact ...
spring boot 运行提示:No active profile set, falling back to default profiles: default Process finished with exit code 1 经检查发现是由于在application.properties配置文 ...
采用file.Transto 来保存上传的文件,代码简单,速度快。 直接上代码: package com.springbootemaildemo.controller; import com.springbootemaildemo.entity.ResponseEntity; import io.s ...
1. distinct()不提供按照属性对对象列表进行去重的直接实现。它是基于hashCode()和equals()工作的。如果我们想要按照对象的属性,对对象列表进行去重,我们可以通过其它方法来实现 public static <T> Predicate<T> distinctByKey(Funct ...
data () { return { listLoading: true, detailsList: {}, list: [{}], detailsQuery: { courseId: undefined } }; }, methods: { getDetailsList () { debugger ...
最新又开始读起来Spring的源码,突然报了一个错了! exception during working with external system: java.lang.AssertionError 这个错,应该是版本的问题导致的!! IDEA 2019 3版本,将gradle的版本换为 ...
然后我就检查 后来使用local history 由于昨天某些操作,导致多写了一行<packaging>, 删掉然后就运行正常了! ...
1、在工作空间下找到 .idea/workspace.xml 2、查找<component name="PropertiesComponent">,并在该元素中添加属性<property name="dynamic.classpath" value="true" /> ...
1、转发 方式一:使用 "forword" 关键字(不是指java关键字),注意:类的注解不能使用@RestController 要用@Controller 方式二:使用servlet 提供的API,注意:类的注解可以使用@RestController,也可以使用@Controller 2、重定向 ...
cookie的设置与销毁 1.设置cookie 2.销毁cookie(将cookie的持续时间设置为0) 2.1查找cookie 2.2销毁cookie 3.实际运用效果 生成cookie 注销cookie ...
代码如下: 执行时报错信息如下:illegal multibyte sequence 尝试解决方式一:添加编码方式:gb18030,失败 尝试解决方式二:编码方式调整为:uft-8,失败 尝试解决方式二:errors 忽略,失败 执行后,不报错了,但是文件内容被解析为乱码。 该问题未解决? ...
解决方案是删除 pom.xml配置的问题 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin ...
加上@RequestBody(required = false) 这个就好了 是因为不识别格式 我是post传json ...
UGUI的Text自己是没有下划线或者文字中间的划去横线的。使用此组件,选择Text和划线类型: 1.设置autoLink=true,运行后自动克隆相同的文本组件,计算文字长度,给克隆的Text填充"_"或者"-"; 2.调用CreateLink方法,为指定Text文本添加下划线 3.此组件暂时用于 ...
线程池的常规使用: 消息发送类,线程池调用 public class MessageClientSendMsg { /** * 日志记录器 */ private static final Log LOGGER = new Log(MessageClientSendMsg.class); /** * ...
JAVA、openOffice、myeclipse报错原因:没有启动openOffice服务。解决办法:运行→cmd,输入:cdC:\Program Files (x86)\OpenOffice 4\program回车再输入soffice -headless -accept="socket,host...
1.正常情况下,只有Pro版的unity才有权限去掉unity自带的logo. 2.下图是个人版的,Splash Image是灰色的,无法禁用掉: 3.下图是破解版的,破解后的unity Splash Image是可以禁用掉的,如下图: 关掉后的样子: ...