react配置完装饰器之后运行yarn start时报错
配置完装饰器之后以运行yarn start就报错 There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locall y. The react-scripts package provided by Create React App requires a dependency: "we
Mysql 常见数据类型及约束
Mysql 常见数据类型及约束 最近在跟几个不太懂技术的同事(哈哈, 其实我也不懂), 要整一个数据库项目, 然后前端, 后端, 都没有像样的, 数据输出还不是由我们控制.... 这可难受了, 然后总数被围绕着, 怎么导入数据, 导出EXCEL .... 之类的, 或者是说导入数据不方便, 怎么字段还要有类型.... 每至于此, 我其实内心是崩溃的, 但非常理解. 不理解, 还能怎么办呢.(当然, 开个玩笑) 这里引出一个问题, 为啥要舌设置类型以及约束? 因为数据类型影响着数据存储的资源占用
[leetcode题解]01两数之和
给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 给定 nums = [2, 7, 11, 15], target = 9
因为 nums[0] + nums[1] = 2 + 7 = 9
所以返回 [0, 1] 分析 关键字:数组、查找、下标。
由于数组是无序的,查找必须要遍历,不能用二分查找,时间复杂度一般最小为O(n)。
暴力解法
2018 ICPC Asia Singapore Regional A. Largest Triangle (计算几何)
题目链接:Kattis - largesttriangle Description Given \(N\) points on a \(2\)-dimensional space, determine the area of the largest triangle that can be formed using \(3\) of those \(N\) points. If there is no triangle that can be formed, the answer is \(0
I. Distance (模拟)2018-2019 ACM-ICPC, Asia Jiaozuo Regional Contest
There are nn points on a horizontal line, labelled with 11 through nn from left to right. The distance between the ii-th point and the (i+1)(i+1)-th point is aiai. For each integer kk ranged from 11 to nn, you are asked to select exactly kk differen
SSM开发过程Bug集锦
问题描述: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\tts9\StudyWorkSpace\TeduStore\target\classes\cn\tedu\store\mapper\UserMapper.class]; nested exception is org.springframework.cor
altiumdesigner
好视频,值得一看,5分钟就把AD给讲明白了:https://www.bilibili.com/video/av67203042?from=search&seid=3328241243049105708;
树莓派启用root账户
树莓派启用root账户 前言: 一般而言,在一块新的树莓派Raspbian系统中,root账户都是为开启的,因此当你要用root账户时,就需要开启root账户。 一般初始账户名为:pi,密码为:raspberry 开启流程: 输入命令:sudo passwd root; 尝试了可以无限输入,无限修改-.-? 此时回提示你输入新的密码,和确定新的密码; 在输入密码的时候啥都不会显示; 通过su root,输入密码后切换到root账户 切换成功后如下:root@raspberrypi:/home/
提问:Nacos部署No DataSource set问题
先跑起mysql数据库主从,并有nacos_config数据库。 有nacos-standalone-mysql.yaml 文件 [root@localhost example]# cat nacos-standalone-mysql.yaml
version: "2"
services:
nacos:
image: nacos/nacos-server:latest
container_name: nacos-standalone-mysql
env
[spring] @PropertySource
配置文件 @PropertySources注解用于加载配置文件到Spring的环境中。 配置文件如下。 demo.msg=this is a message. 如何引用到配置文件 在app项目中,我们通过@PropertySource注解到JavaConfig类上,设置.properties配置文件的路径。 在gradle项目中,配置文件放在src/main/resources/路径下,还可以放在这个目录下的文件夹。如:src/main/resources/demo/app.propertie
Girls and Boys POJ - 1466 【(二分图最大独立集)】
Problem Description In the second year of the university somebody started a study on the romantic relations between the students. The relation "romantically involved" is defined between one girl and one boy. For the study reasons it is necessary to
linux温故--4-文件链接
ln可以链接文件,类似windows的快捷方式 ln -s zxw.txt z.lnk 删除原文件 rm zxw.txt 源文件删除后,如下图,路径开始标红并闪烁 /tmp 和 /var/tmp 的区别 /tmp下临时存储的时间较短,/var/tmp下临时存储的时间较长 stickbit 当服务器上有多个用户共享的文件夹存在时,就可以配置文件夹进入stickbit模式,在此模式下,不能删除不是当前用户的创建的文件 使用chmod o+t 的方式,可以增加,保证用户只能创建和删除自己创建的文件
JDK11的ZGC的回收过程-学习笔记
前两天看到一篇不错的文章,连接在这里:听R大论JDK11的ZGC,文章写的很不错,能够说明白ZGC的整个过程。 前言 ZGC来了 !!! Java程序员可以光荣的远离讨厌的GC停顿和调优了。ZGC的成绩是,无论你开了多大的堆内存(128G?2T?),硬是能保证
今日推荐
周排行