自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (1)
  • 收藏
  • 关注

原创 关于springboot :Access denied for user ‘‘@‘localhost‘ (using password: YES)

解决办法1:查看自己的yml配置对不对,属性有没有拼写错误,比如用了data-username而不是username等等username属性是登录数据库的用户名巴拉巴拉巴拉一堆,好像是用来执行DML文本的数据库的用户名,反正肯定不是连接数据库所需的username解决办法2:查看自己的password属性值是不是加了引号尤其是数字密码更要加引号,否则yml可能会默认去零,加引号为了表明是字符串解决办法3:(很少见,一般是前两种)没有赋予数据库权限,需要进入mysql的控制命令行界面输.

2021-03-22 17:47:18 530

原创 关于maven :pom.xml文件中父工程部分提示spring-boot-starter-parent:2.0.7.RELEAS not found

问题:pom.xml文件中父工程处spring-boot-starter-parent的版本为2.0.7.RELEASE提示找不到解决办法:配置镜像Step1:在setting中搜索maven,复制maven home directory:中的路径在我的电脑中打开Step2:在conf文件夹中找到settings.xml文件,找到 区域添加如下配置<mirror> <id>alimaven</id> <name>aliyun m

2021-03-18 15:30:40 625

原创 leetcode453:最小操作次数

class Solution { public int minMoves(int[] nums) { int length = nums.length; // 数组长度 Arrays.sort(nums); int min = nums[0]; int count = 0; int total = 0; for(int num : nums){ total += num; .

2021-03-16 21:37:51 332

原创 关于SpringCloud:fegin和controller中@PathVariable和@RequestParam的使用问题

Q:何时使用@RequestParamA:当url带的参数是以 :?参数名=value时Q:何时使用@PathVariable?A:当url带的参数是以 :/value时可以看到GetMapping中(user/{id}) ,是以/value的形式,所以使用@PathVariable注解当使用fegin时:使用两种注解都是可以的,fegin都可以给你生成url但是在controller中就要严格按照两种注解的使用规则使用:否则报错:tip:controller中方法上的路

2021-03-14 17:28:46 661

原创 leetcode274:H指数

class Solution { public int hIndex(int[] citations) { // 给定的数组是非负整数,求其H // h篇 >= h次 && N-h篇 <= h次 Arrays.sort(citations); // 原数组排序,论文引用次数按照从小到大来排序 int i = 0; while(i < citatio.

2021-03-14 10:57:46 128

原创 leetcode41:缺失的第一个正数

class Solution { public int firstMissingPositive(int[] nums) { Arrays.sort(nums); int index = 1; // 判断所给数组是否为空 if(nums.length == 0 || nums == null){ index = 1; } for(int i = 0; i < nums.le.

2021-03-12 08:39:53 167

原创 关于Spring Cloud:‘xxx‘ attribute is not specified and no embedded datasource could be configured.

问题:没有在覆盖配置文件中找到’xxx’解决办法:1.检查是否写了这个配置。2.属性名冒号后面要加一个空格。加完空格后,关键字高亮

2021-03-10 21:46:51 125

原创 关于Spring Cloud:Mapper<>中的泛型红线:Type ‘org.apache.ibatis.annotations.Mapper‘ does not have type paramet

Type ‘org.apache.ibatis.annotations.Mapper’ does not have type parameters解决办法:检查mapper接口中导入的包是不是通用mapper包之前:现在:Tip:检查启动类中的MapperScan扫描导入的包是不是通用Mapper包!应该为:...

2021-03-10 21:31:04 2605 1

原创 关于Spring Cloud:Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:3.0.2

原因下载不了相关依赖解决办法:在pom.xml中添加如下配置:<repositories> <repository> <id>alimaven</id> <name>Maven Aliyun Mirror</name> <url>https://repo.maven.apache.org/maven2/</url> <releases> <enable

2021-03-10 21:26:58 444

原创 关于Spring Cloud:新建的项目的pom的图标错误,右侧Maven Projects没有出现创建的项目

解决办法:右键pom.xml ,选择Add as Maven Project

2021-03-10 20:58:38 250

原创 leetcode442:数组中重复的数据

class Solution { public List<Integer> findDuplicates(int[] nums) { // 存放返回的数组 List<Integer> list =new ArrayList<>(); // 获取数组的长度,以便于在循环中进行使用 int len = nums.length; // 将1~n存放在一个数组当中 in.

2021-03-09 09:11:55 134

原创 leetcode448:找到所有数组中消失的数字

class Solution { public List<Integer> findDisappearedNumbers(int[] nums) { int n = nums.length; Map<Integer,Integer> map = new HashMap(); for(int i = 1; i <= n ; i++){ map.put(i,0); // 初始都是 n --- 0 .

2021-03-08 18:56:20 158

原创 leetcode697:数组的度

class Solution { public int findShortestSubArray(int[] nums) { // 非空 非负整数 Map<Integer,int[]> map = new HashMap<Integer,int[]>(); for(int i = 0; i < nums.length; i++){ if(map.containsKey(nums[i])){ .

2021-03-04 15:27:56 93 1

原创 leetcode645:错误的集合

class Solution { public int[] findErrorNums(int[] nums) { int twice = -1; int none = 1; int n = nums.length; Arrays.sort(nums); // 排序 for(int i = 0; i < nums.length - 1; i++){ if(nums[i] == nums[i.

2021-03-03 14:43:33 84 1

原创 leetcode628:三个数的最大乘积

代码1: 方法一 int maxNumber = Integer.MIN_VALUE; // 第一大数 int secondMaxNumber = Integer.MIN_VALUE;// 第二大数 int thirdMaxNumber = Integer.MIN_VALUE; // 第三大数 int firstMinus = Integer.MAX_VALUE; // 最小的负数 int se.

2021-03-02 15:06:15 167

原创 leetcode414:第三大的数

代码:class Solution { public int thirdMax(int[] nums) { int maxNumber = Integer.MIN_VALUE; int secondMaxNumber = Integer.MIN_VALUE; int thirdMaxNumber = Integer.MIN_VALUE; boolean flag = false; for(int i = 0; i &.

2021-03-01 22:01:12 94

原创 leetcode495:提莫攻击

代码:class Solution { public int findPoisonedDuration(int[] timeSeries, int duration) { if(timeSeries.length > 0 && timeSeries != null){ int total = 0; int endStatusTime = 0; for(int i = 0; i &lt.

2021-03-01 14:23:50 106

原创 leetcode485:最大连续1的个数

代码:class Solution { public int findMaxConsecutiveOnes(int[] nums) { int count = 0; int maxContinue = 0; for(int i = 0;i < nums.length;i ++){ if(nums[i] == 1){ count ++; }else{ .

2021-03-01 10:46:59 83

license.zip

用pycharm实现的车牌识别系统,可视化用的pyqt5,图像处理用的opencv+pillow,用svm训练模型,文档为全部代码,实现功能是:1.上传本地图片进行识别 2.打开摄像头进行识别

2020-04-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除