上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页
摘要: 首先想到的解决办法是把工程clean一下,并没有用。去网上找了一个遍终于找到了管用的方法。方法如下: 把properties属性里的java compiler-->building-->abort build when build path errors occur 前的勾去掉这样就ok 了方法引用 阅读全文
posted @ 2020-03-31 21:42 leagueandlegends 阅读(439) 评论(0) 推荐(0)
摘要: 解决fopen、fscanf 在VS中要求替换为fopen_s、fscanf_s的最全解决办法 方法一:在程序最前面加#define _CRT_SECURE_NO_DEPRECATE; 方法二:在程序最前面加#define _CRT_SECURE_NO_WARNINGS; 方法三:在程序最前面加#p 阅读全文
posted @ 2020-03-30 19:30 leagueandlegends 阅读(22083) 评论(0) 推荐(1)
摘要: 一.配置文件加载顺序 SpringBoot会扫描如下几个位置的application.properties文件以及application.yml文件作为Springboot的默认配置文件,且位置的不同会造成文件的加载优先级不同。 文件位置如下: -file:./config/-file:./-cla 阅读全文
posted @ 2020-03-27 16:52 leagueandlegends 阅读(1363) 评论(0) 推荐(0)
摘要: 今天在尝试springboot打包mvn clean package -DskipTests的时候报了错误No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 阅读全文
posted @ 2020-03-26 19:37 leagueandlegends 阅读(446) 评论(0) 推荐(0)
摘要: 异常现象: [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-parseable POM C:\Users\adm 阅读全文
posted @ 2020-03-26 10:44 leagueandlegends 阅读(6371) 评论(0) 推荐(1)
摘要: SpringBoot-profile解析 SpringBoot中使用配置文件application.properties和application.yml两种方式,在这两种方式下分别对应各自的profile配置方式。 一.Properties配置文件环境切换 1、application.propert 阅读全文
posted @ 2020-03-25 17:03 leagueandlegends 阅读(1819) 评论(0) 推荐(0)
摘要: 在我们配置properties文件时,可以通过文件占位符使用属性文件中的其他属性值。 举个例子: ConfigBean.java package com.zk.myspringboot_003; import java.util.ArrayList; import java.util.HashMap 阅读全文
posted @ 2020-03-19 23:36 leagueandlegends 阅读(719) 评论(0) 推荐(0)
摘要: 一.配置Bean的方式一 我们可以使用注解@ImportResource引入SpringBean.xml 首先建立一个SpringBoot,添加SpringBootApp.java、beans.xml、HelloService.java、SpringBoottest.java如下: HelloSer 阅读全文
posted @ 2020-03-15 15:23 leagueandlegends 阅读(529) 评论(0) 推荐(0)
摘要: 字符串的左旋转操作是把字符串前面的若干个字符转移到字符串的尾部。请定义一个函数实现字符串左旋转操作的功能。比如,输入字符串"abcdefg"和数字2,该函数将返回左旋转两位得到的结果"cdefgab"。 示例 1: 输入: s = "abcdefg", k = 2 输出: "cdefgab" 示例 阅读全文
posted @ 2020-03-12 19:40 leagueandlegends 阅读(170) 评论(0) 推荐(0)
摘要: 给你一个数组 nums,对于其中每个元素 nums[i],请你统计数组中比它小的所有数字的数目。 换而言之,对于每个 nums[i] 你必须计算出有效的 j 的数量,其中 j 满足 j != i 且 nums[j] < nums[i] 。 以数组形式返回答案。 示例 1: 输入:nums = [8, 阅读全文
posted @ 2020-03-12 19:37 leagueandlegends 阅读(236) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页