摸黑源码啊

news/2024/10/21 3:38:36/

QQ邮箱授权码:qkhsaxcvvzhlbbcg

运行blog-vue

npm install
npm run serve
结果为:
App running at:

  • Local: http://localhost:8080/
  • Network: http://10.22.31.195:8080/

访问Local时出现错误:

Proxy error: Could not proxy request /server/blog/blogInfo from localhost:8080 to http://127.0.0.1:9001. See
https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

在这里插入图片描述
解决:改为localhost:9001

运行后端

顺序为:
在这里插入图片描述
问题:无法更新文章
在这里插入图片描述
Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction ### The error may exist in pers/fjl/server/dao/BlogTagDao.java (best guess) ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: DELETE FROM blog_tag WHERE (blog_id = ?) ### Cause: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction ; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction

方法1

没解决
在这里插入图片描述

问题:在后台无法删除、添加、修改分类和标签,删除时问题描述如下,add和alter时显示没有权限

Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column

‘create_time’ cannot be null ### The error may exist in
pers/fjl/server/dao/admin/OperationLogDao.java (best guess) ### The
error may involve
pers.fjl.server.dao.admin.OperationLogDao.insert-Inline ### The error
occurred while setting parameters ### SQL: INSERT INTO
tb_operation_log ( opt_module, opt_url, opt_type, opt_method,
opt_desc, request_method, request_param, response_data, uid, nickname,
ip_address, ip_source, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ? ) ### Cause:
java.sql.SQLIntegrityConstraintViolationException: Column
‘create_time’ cannot be null ; Column ‘create_time’ cannot be null;
nested exception is java.sql.SQLIntegrityConstraintViolationException:
Column ‘create_time’ cannot be null

方法1
可知是……的问题,故将……改为off,参考这个方法,代码如下:

SHOW GLOBAL VARIABLES LIKE '%explicit_defaults_for_timestamp%';SET GLOBAL explicit_defaults_for_timestamp='OFF';

此博客分析类似

又错了啊啊啊啊啊,重启mysql服务直接变成on了,再执行上述语句改为off还是错误。

待解决的bug:

需要找人加的功能:

  • 图片本地上传(必须)
  • 后台一些查询功能的实现:留言、菜单(可选)
  • 分类管理、标签管理的添加修改的实现(必须)
  • 前端博客的查询与删除(必须)
  • 关于我页面
  • 保存博客的页面和实现(可选)

随机生成的用户头像—修改前端

blog-vue

聊天室功能正常
音乐盒功能正常

  • 没有保存博客的页面
  • 无法删除评论 !!!
  • 无法修改个人信息(显示修改成功,其实并没有改)
  • 可以发布博客,但是显示server的错误提示,现在不能发布博客了(get)
  • 取消收藏按钮未实现…………把这个按钮改了!!!
  • 博文数据显示不出来…………问问那个博主!!!
  • 博客列表没有更新时间(数据库设计表时勾选“根据当前时间戳更新”
  • 发布博客无法添加图片(反应慢,图片前面必须空行!
  • 图片显示不出来……没有添加到服务器的原因? 用wallhaven可以显示,百度不行,其他图片网站也可以,应该是格式不对
  • 无法上传本地图片,也无法显示粘贴的截图等
  • 链接跳转不过去(链接描述输入问题
    Failed to convert value of type ‘java.lang.String’ to required type ‘java.lang.Long’; nested exception is java.lang.NumberFormatException: For input string: “CSDN”
    更新:可以跳转,直接添加链接的时候添加描述,不能先写在博客里
  • 普通用户无法更新博客
  • 友链问题,审核通过?
  • 背景显示不出来
  • 搜索功能无法使用**(普通用户未实现)**
  • ai 爬虫不存在(去掉)
  • 用户查看博客,无法点开博客具体内容
  • 首页搜索功能不能实现!!!!

blog-admin-vue

文章发布、更新都正常
评论删除搜索正常
留言删除(实际上,表面上不正常)正常,搜索无反应
用户管理编辑搜索正常

  • 无法保存博客,只能直接发布(删除该按钮)
  • 之后后台无法发布文章了,(一开始是好使的 )报错如下

pers.fjl.server.dao.TagDao.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1 ; bad SQL grammar []; nested exception is java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1
大意是插入语法有误,应该是由于标签没显示出来的问题

  • 直接登不进去后台,此时前台也无法发布博客,
  • 编辑博客没有问题,删除也可以,但是也显示那个serve的错误
    根据以下报错,也就是说生成操作日志的时候异常,原因在create_time字段

Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column
‘create_time’ cannot be null ### The error may exist in
pers/fjl/server/dao/admin/OperationLogDao.java (best guess) ### The
error may involve
pers.fjl.server.dao.admin.OperationLogDao.insert-Inline ### The error
occurred while setting parameters ### SQL: INSERT INTO
tb_operation_log ( opt_module, opt_url, opt_type, opt_method,
opt_desc, request_method, request_param, response_data, uid, nickname,
ip_address, ip_source, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ? ) ### Cause:
java.sql.SQLIntegrityConstraintViolationException: Column
‘create_time’ cannot be null ; Column ‘create_time’ cannot be null;
nested exception is java.sql.SQLIntegrityConstraintViolationException:
Column ‘create_time’ cannot be null

  • 无法添加、修改分类和标签,显示没有权限
    原因:系统中管理员用户并没有修改和添加分类和标签的权限,并且后端代码中也没有具体实现代码。
  • 留言搜索无反应(输入用户名点击搜索,再选中一个批量删除,就会显示搜索后结果
  • 留言删除显示失败,也是一大长串异常,但是实际上已经删除(get)
  • 权限管理之角色管理增删改显示异常,但是删除可以实际实现(后悔)
  • 接口管理增删改查功能均正常,但是会显示失败(get)
  • 菜单管理不能增删改查(get后不知道怎么就好了)
  • 菜单管理无法查询
  • 友链无法删除,增改提示错误但可以实现(get、rabbitmq)
  • 关于我。。无法修改文字,修改功能不知道要干啥
  • 操作日志无数据(get)
  • 首页显示不出数据(只是加载慢,自己又好了

我的修改

  1. 将编辑博客中上传图片显示成功的条件改了(加了个非)

  2. (ai模块)将一些表示成功的状态改成了数字,如下所示
    在这里插入图片描述
    改成了200,代表请求成功
    在这里插入图片描述

  3. 后台登录密码改了
    在这里插入图片描述
    前端

  4. 修改tagvue背景:https://www.static.talkxj.com/wallhaven-13mk9v.jpg

  5. 修改后台message.vue(对比着comment)
    在这里插入图片描述
    在这里插入图片描述

  6. blog-vue\src\views\admin\dataWatch\Report.vue 中多加了个!(非),但是仍然不会出现数据分析
    在这里插入图片描述

  7. about

在这里插入图片描述

https://github.com/xiongsihao/myblog
background: url(https://w.wallhaven.cc/full/ex/wallhaven-ex3m8k.jpg,size_16,color_FFFFFF,t_70#pic_center) center center /

其他

安装docker
中间遇到问题:解决方法

docker安装rabbitmq,首先设置docker镜像。记得将#去掉,并使用管理员身份:教程
2
3

已经启动成功:
在这里插入图片描述
使用虚拟机ip访问,需要开启虚拟机端口 教程
各种命令,注意开启rabbitmq,开启命令为:sudo docker start 9410180a74c6(容器ID)/rabbit(容器名字)
注意docker ps与docker ps -a 的区别
虚拟机ip:192.168.42.131

安装es: 教程,其中
在这里插入图片描述
改为
sudo vim /mydata/elasticsearch/config/elasticsearch.yml,然后将 http.host: 0.0.0.0 写入
问题:无法用浏览器访问,采用此教程里的方法查看日志,得知是上一步出了问题

  • 容器ID:54966d266e01375c6cddc4e31d994f181ed9c7b38b51b91d395e7e88181bf37f
    docker exec -it 54966d266e01 /bin/bash

在这里插入图片描述

  • 原来的密码$2a 10 10 10FsH29otWgTLkztGoPhLXdO6mEK9knQp7XNesyTfWC33BxUmC18CRG
    其实这是加密后的密码,解密:123456?admin123?

  • 修改mysql的一些设置,参照此文章

不堪重负的电脑:在这里插入图片描述

Creating a new SqlSession SqlSession
[org.apache.ibatis.session.defaults.DefaultSqlSession@4f21e518] was
not registered for synchronization because synchronization is not
active JDBC Connection [HikariProxyConnection@1591877097 wrapping
com.mysql.cj.jdbc.ConnectionImpl@3d5b8a08] will not be managed by
Spring
> Preparing: SELECT blog_id,appreciation,comment_able,copyright,content,create_time,first_picture,thumbs,published,recommend,title,update_time,views,type_id,uid,description
FROM blog WHERE blog_id=?
> Parameters: 1650752376979615746(Long) < Columns: blog_id, appreciation, comment_able, copyright, content, create_time,
first_picture, thumbs, published, recommend, title, update_time,
views, type_id, uid, description <
Row: 1650752376979615746,
0, 1, 1, <>, 2023-04-25 14:43:30,
https://unsplash.it/800/450?image=267, 0, 0, 1, Execution of Rabbit
message listener failed., null, 1, 2, 1523893866560778242, <>
<== Total: 1 Closing non transactional SqlSession
[org.apache.ibatis.session.defaults.DefaultSqlSession@4f21e518]
Creating a new SqlSession SqlSession
[org.apache.ibatis.session.defaults.DefaultSqlSession@1b3a1501] was
not registered for synchronization because synchronization is not
active JDBC Connection [HikariProxyConnection@1442402010 wrapping
com.mysql.cj.jdbc.ConnectionImpl@3d5b8a08] will not be managed by
Spring
==> Preparing: SELECT blog_id,appreciation,comment_able,copyright,content,create_time,first_picture,thumbs,published,recommend,title,update_time,views,type_id,uid,description
FROM blog WHERE blog_id=?
> Parameters: 1650686907480305665(Long) < Total: 0

  • 突然连接不上虚拟机内的rabbitmq服务,原因和解决方法

  • Gitee
    在这里插入图片描述

  • Gitee托管代码:教程,其中若出现"error: remote origin already exists."错误,则先输入git remote rm origin,删除关联的origin的远程库 参考
    中间若有其他问题可以直接删除.git文件(隐藏),重新操作

前端

  • 错误提示:‘qrcode‘ is assigned a value but never used no-unused-vars
    解决方法
  • 二维码生成插件:教程
  • vue显示本地图片:三种方法、教程2
  • vue上传图片的三种方式

壁纸:

男孩和狗
海南

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3df9b119] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1111490914 wrapping com.mysql.cj.jdbc.ConnectionImpl@6fa6bb15] will not be managed by Spring
> Preparing: SELECT blog_id,appreciation,comment_able,copyright,content,create_time,first_picture,thumbs,published,recommend,title,update_time,views,type_id,uid,description FROM blog WHERE blog_id=?
> Parameters: 1650791046445121537(Long)
<
Columns: blog_id, appreciation, comment_able, copyright, content, create_time, first_picture, thumbs, published, recommend, title, update_time, views, type_id, uid, description
<
Row: 1650791046445121537, 0, 1, 1, <>, 2023-04-25 17:17:10, https://unsplash.it/800/450?image=251, 0, 0, 1, 想发个图片, 2023-04-27 10:20:15, 3, 1, 1523893866560778242, <>
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3df9b119]

搜索留言后删除

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2f1431c7] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1786483759 wrapping com.mysql.cj.jdbc.ConnectionImpl@6a92c72a] will not be managed by Spring
JsqlParserCountOptimize sql=SELECT mid,message_content,time,nickname,avatar,ip,ip_source,create_time FROM message
> Preparing: SELECT COUNT(1) FROM message
> Parameters:
<
Columns: COUNT(1)
<
Row: 13
> Preparing: SELECT mid,message_content,time,nickname,avatar,ip,ip_source,create_time FROM message LIMIT ?
> Parameters: 10(Long)
搜索结果
<
Columns: mid, message_content, time, nickname, avatar, ip, ip_source, create_time
<
Row: 1649609943713619969, 我的头像怎么上传呢?, 14, admin, https://r.photo.store.qq.com/psc?/V53KcXfb1umonn4HbITu3rINxs43TczD/45NBuzDIW489QBoVep5mccJUo7q6gaMPZmbFDSW8tjmAm4XwuoUZmMKw3asmvn1mxsETf0fj.VOh2G6OX7v4duFOfedV2oGNQ*GrJEPkA!/r, 127.0.0.1, unknown, 2023-04-22 11:03:53
<== Row: 1649965084052566018, 你的头像怎么还没变, 9, admin3, https://unsplash.it/100/100?image=863, 127.0.0.1, unknown, 2023-04-23 10:35:05
<== Row: 1650689346786848770, 找个好看的背景, 8, admin, https://img2.baidu.com/it/u=3618236253,1028428296&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1682269200&t=b85ffd78668b8f8310e04fd1ee64e3b8, 127.0.0.1, unknown, 2023-04-25 10:33:03
<== Row: 1651436346322993154, 234, 13, admin, https://img2.baidu.com/it/u=3618236253,1028428296&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1682269200&t=b85ffd78668b8f8310e04fd1ee64e3b8, 127.0.0.1, unknown, 2023-04-27 12:01:21
<== Row: 1651436351926583298, 4556, 7, admin, https://img2.baidu.com/it/u=3618236253,1028428296&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1682269200&t=b85ffd78668b8f8310e04fd1ee64e3b8, 127.0.0.1, unknown, 2023-04-27 12:01:23
<== Row: 1651436387389423618, 456, 6, admin, https://img2.baidu.com/it/u=3618236253,1028428296&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1682269200&t=b85ffd78668b8f8310e04fd1ee64e3b8, 127.0.0.1, unknown, 2023-04-27 12:01:31
<== Row: 1651436397422198785, 43456, 13, admin, https://img2.baidu.com/it/u=3618236253,1028428296&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1682269200&t=b85ffd78668b8f8310e04fd1ee64e3b8, 127.0.0.1, unknown, 2023-04-27 12:01:34
<== Row: 1651496128731955202, 2345, 6, admin3, https://unsplash.it/100/100?image=863, 127.0.0.1, unknown, 2023-04-27 15:58:55
<== Row: 1651496137082814465, 2345, 14, admin3, https://unsplash.it/100/100?image=863, 127.0.0.1, unknown, 2023-04-27 15:58:57
<== Row: 1651496145395924993, 23466, 8, admin3, https://unsplash.it/100/100?image=863, 127.0.0.1, unknown, 2023-04-27 15:58:59
<== Total: 10
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2f1431c7]

评论搜索admin3

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7c2c514d] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@959369388 wrapping com.mysql.cj.jdbc.ConnectionImpl@6a92c72a] will not be managed by Spring
> Preparing: SELECT c.comment_id, c.uid, c.nickname, u.nickname as reply_nickname, c.content, c.title, c.create_time, c.avatar FROM ( SELECT DISTINCT c.comment_id, c.uid, u.nickname, c.reply_uid, b.title, u.avatar, c.content, DATE_FORMAT(c.create_time,‘%Y-%m-%d’) as ‘create_time’ FROM user u, blog b, comment c WHERE u.uid = c.uid AND c.blog_id = b.blog_id AND u.nickname LIKE ‘%admin3%’ ) as c LEFT OUTER JOIN user u on u.uid= c.reply_uid ORDER BY c.create_time DESC LIMIT 0,?
> Parameters: 10(Integer)
<
Columns: comment_id, uid, nickname, reply_nickname, content, title, create_time, avatar
<
Row: 1649967336788078593, 1649963708660592641, admin3, null, 好棒哦, 这是一篇测试博客, 2023-04-23, https://unsplash.it/100/100?image=863
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7c2c514d]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@85da85c] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@384116259 wrapping com.mysql.cj.jdbc.ConnectionImpl@6a92c72a] will not be managed by Spring
> Preparing: SELECT COUNT( 1 ) FROM comment
> Parameters:
<
Columns: COUNT( 1 )
<
Row: 4
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@85da85c]

  • 清除Redis缓存,步骤如下:
    启动redis-server
    进入redis的安装目录
    双击redis-cli.exe
    执行:dbsize
    执行:flushall
    退出
    参考

http://www.ppmy.cn/news/856614.html

相关文章

1 6岁英国男孩开网站掘出第一桶金

1 6岁英国男孩开网站掘出第一桶金 http://www.sina.com.cn 2008年03月17日 11:47 江南时报 当大多数同龄人还在靠周末辛苦打工赚一点零用钱时&#xff0c;16岁的英国小企业家乔纳森格鲁宾已通过他所建立的三家网站掘出第一桶金&#xff0c;仅去年就赚了7.5万英镑(约合15万美元…

16岁英国男孩格鲁宾开网站掘出第一桶金

当大多数同龄人还在靠周末辛苦打工赚一点零用钱时&#xff0c;16岁的英国小企业家乔纳森格鲁宾已通过他所建立的三家网站掘出第一桶金&#xff0c;仅去年就赚了7.5万英镑(约合15万美元)。 格鲁宾赚钱足不出户&#xff0c;利用的是“联属网络营销”模式&#xff0c;即开设网站…

必应每日壁纸API HTML 使用必应每日API为背景 css 背景图片 加模糊 遮罩

必应每日壁纸API 必应每日壁纸接口API https://cn.bing.com/HPImageArchive.aspx?formatjs&idx0&n1&mktzh-CN 接口会返回一个json对象&#xff0c;其中有个 images[0].url就是 壁纸链接 {"images": [{"startdate": "20220609",&q…

linux壁纸图片不让复制,一些不常见到的LINUX壁纸,老规矩只提供给红联的兄弟姐妹...

nrp520 于 2007-07-02 13:07:54发表: 我好象只要是这个FTP的地址我就下不来 danyz888 于 2007-07-01 17:05:53发表: well, thx!! danyz888 于 2007-07-01 17:00:00发表: well, thx!! p48376382 于 2007-07-01 15:22:43发表: 呵呵 我也去看看 bdodx 于 2007-07-01 14:12:57发表:…

老男孩python培训怎么样_Python如何实现爬虫?老男孩Python

爬虫对于大家都不陌生&#xff0c;被广泛的应用于我们的日常生活以及工作中&#xff0c;那么你知道如何利用Python实现爬虫的简单功能吗?这里为大家列举一个简单的示例。 在我们日常上网浏览网页的时候&#xff0c;经常会看到一些好看的图片&#xff0c;我们就希望把这些图片保…

基于java+swing+mysql图书管理系统V6.0

基于javaswingmysql图书管理系统V6.0 一、系统介绍二、功能展示1.项目骨架2.数据库表3.项目内容4.登陆界面5.管理员-读者注册6、管理员-书籍入库7、管理员-书籍更新8、管理员-书库管理9、管理员-读者更新10、用户-还书11、用户-借书 四、其它1.其他系统实现五.获取源码 一、系统…

第二章编程模型(Cortex-M7 Processor Programmers Model)

第二章编程模型 本章描述了程序员模型。它包含以下部分: 关于2-2页的程序员模型。2-3页的操作和执行方式。指令集摘要见第2-4页。系统地址映射在2-5页。2-8页的独家监视器。处理器核心寄存器在第2-9页。例外情况见第2-10页。 2.1关于编程模型 本章概述了描述实现定义选项的…

夸时代的“玩具”

随着互联网的发展&#xff0c;现在小孩子的玩具逐渐被手机所取代。现在流转着这样一句话&#xff1a;现在的小孩是伴随着5G网络出生的。回想80后90后儿时的玩具主要以小孩运动为主。打弹珠&#xff0c;跷跷板&#xff0c;下河摸鱼&#xff0c;滚轴车&#xff0c;捏泥人等都在吵…