![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
牛客项目
小K哈哈
这个作者很懒,什么都没留下…
展开
-
牛客高级项目(二)-MySQL报错:Expression #1 of SELECT list is not in GROUP BY clause and contains
一、MySQL报错:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated columnExpression #1 of SELECT list is not in GROUP BY clause and containsnonaggregated column ‘tt.from_id’ which is not functionally dependenton columns in GROU原创 2020-12-03 11:51:18 · 489 阅读 · 0 评论 -
牛客项目报错(一)-Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
用到group by,但是却报了如下错误:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘sss.month_id’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by原因:Mys.原创 2020-10-18 23:13:40 · 514 阅读 · 2 评论 -
1-牛客项目中用mac会遇到的问题:mac中git使用、solr安装、pyspider安装
https://blog.csdn.net/weixin_41167848/article/details/89956852:MacBook Pro中IntelliJ(IDEA)使用git提交代码到BitBucket提示Push rejected: Push to origin/master was rejected原创 2020-12-06 20:59:10 · 181 阅读 · 0 评论 -
2-Redis的五种数据结构,Redis数据结构的命令
Redis主要支持的数据类型有5种:String ,Hash ,List ,Set ,和 Sorted SetRedis数据结构的命令(1)list双向列表:适合放列表 push、lpop、bloop、lindex、lrange、lrem、linsert、lset、rpush(2)hash:hset、hget、hgetAll、hexists、hkeys、hvals(3)set:适合点赞、抽奖、已读、共同好友sdiff、smembers、sinter、scard(4)SortedSet:适合排原创 2020-10-17 21:13:29 · 117 阅读 · 0 评论 -
3-前缀树算法过滤敏感词 高级项目
前缀树算法过滤敏感词前缀树算法:又称字典树,单词查找树,Trie树,是一种树形结构,是一种哈希树的变种。典型应用是用于统计,排序和保存大量的字符串(但不仅限于字符串),所以经常被搜索引擎系统用于文本词频统计。前缀树算法过滤敏感词图示首先我们假设敏感词是abc ,bf ,be。然后根据敏感词建立一棵前缀树如图所示。然后输入待过滤的字符串,此处假设是:c b a b c b f e a。利用前缀树算法过滤敏感词,我们需要三个指针:指针a指向前缀树的根节点,指针b指向待查找字符串的第一个节点,指针c作为游标转载 2020-10-04 21:05:04 · 271 阅读 · 0 评论 -
4-SpringBoot项目运行页面报错:Whitelabel Error Page的解决办法
解决办法1:让项目启动类和Controller处于同一层解决办法2:可能这个url请求根本没有写对应的Controller方法,需要写一个url请求对应的Controller方法来处理url请求@RequestMapping(path = {"/reglogin"}, method = {RequestMethod.GET})public String regloginPage(Model model, @RequestParam(value = "next", required = false).原创 2020-10-04 14:59:28 · 4929 阅读 · 0 评论 -
5-solr连接Mysql警告Establishing SSL connection without server‘s identity verification is not recommende
https://blog.csdn.net/qq_41785135/article/details/85118329原来的:jdbc:mysql://localhost:3306/testdb改为:jdbc:mysql://localhost:3306/testdb?useSSL=false或者: jdbc:mysql://localhost:3306/testdb?characterEncoding=utf-8&useSSL=false两种方式都可以...原创 2020-12-06 14:01:48 · 93 阅读 · 0 评论 -
6-solr7.2环境搭建和配置ikanalyzer中文分词器
https://blog.csdn.net/lingzhangjie/article/details/79114993原创 2020-12-05 17:09:53 · 105 阅读 · 0 评论 -
7-MySQL报错:jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nest
在连接数据库的时候,在数据库url、用户名、密码等都写正确的时候,依然有可能会出现下面这个错误:org.springframework.jdbc.CannotGetJdbcConnectionException: Could notget JDBC Connection; neste问题分析:这个是导入的数据库连接包的问题,如果你导的包版本太低或者不符合,就会出现相关的错误。原因:我的mac上mysql数据库是5.7版本,数据库连接包jar包也是5.x,但是windows上的mysql数据库是8原创 2020-12-05 11:05:02 · 736 阅读 · 0 评论 -
8-MySQL启动报错解决方案ERROR! The server quit without updating PID file (Mysql怎么启动、重启、kill进程、看版本号的命令)
sudo /usr/local/mysql/support-files/mysql.server start启动MySQL报错:ERROR! The server quit without updating PID file(/usr/local/mysql/data/MacBook-Pro-2.local.pid).一、Mac的MySQL怎么启动https://www.jianshu.com/p/cbf87ce6fa62sudo /usr/local/mysql/support-files.原创 2020-12-03 19:04:28 · 1034 阅读 · 0 评论 -
9-java.sql.SQLException: Incorrect string value: ‘\xE9\x82\xA3\xE5\xB0\xB1‘ for column ‘content‘
在mysql插入中文字符时,报错java.sql.SQLException: Incorrect string value: ‘\xE9\x82\xA3\xE5\xB0\xB1’ for column ‘content’原因:由于默认情况下,mysql的字符集是latin1(ISO_8859_1),包含库、表、字段,即使建表时指定编码格式也会失效。解决办法:1、先在navicat中查看库、表、表字符字段的编码格式SHOW CREATE DATABASE kepler; //查看库kepler的字符原创 2020-10-19 00:05:50 · 1204 阅读 · 0 评论 -
10-java.sql.SQLException: Incorrect string value: ‘\xE7\xA1\x95\xE5\xA4\xA7...‘ for column ‘content‘
创建每张表的时候都必须设置数据编码方式,改后的语句如下:DROP TABLE IF EXISTS `question`;CREATE TABLE `question` ( `id` INT NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `content` TEXT NULL, `user_id` INT NOT NULL, `created_date` DATETIME NOT NULL, `comment_cou原创 2020-10-18 23:43:00 · 142 阅读 · 0 评论