zzzzbw / fame Goto Github PK
View Code? Open in Web Editor NEWA blog power by spring-boot and vue
Home Page: https://zzzzbw.cn/
License: MIT License
A blog power by spring-boot and vue
Home Page: https://zzzzbw.cn/
License: MIT License
这个问题无意中碰到。 新建文章的时候必须有「标题」和「内容」。 昨天我保存的时候。虽然提示我「内容」没有写,但是我发现文章还是创建了。
我猜测应该是网络问题。保存的时候表单验证还没结束。直接「绕过」然后保存了。 暂时无法再现
发现连接文字不能加粗,如下连接:
未加粗:
Visual Studio Code
但是 Fame 里面这个效果失效。
**[Visual Studio Code](https://code.visualstudio.com)**
能不能点拨下
➜ fame-admin git:(master) npm run serve
[email protected] serve /Users/haseochen/GitHub/Fame/fame-admin
vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
WARNING Compiled with 1 warnings 1:52:33 AM
Module Warning (from ./node_modules/eslint-loader/index.js):
error: 'value' is defined but never used (no-unused-vars) at src/components/common/MarkdownEditor.vue:68:32:
66 | },
67 | methods: {
68 | markdownFullScreen(status, value) {
| ^
69 | if (status) {
70 | this.$root.$emit("indexUp");
71 | } else {
1 error found.
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
App running at:
Note that the development build is not optimized.
To create a production build, run npm run build.
代码中
RUN npm config set registry https://registry.npm.taobao.org
需要更换为
RUN npm config set registry https://registry.npmmirror.com
当你在文章页面回复用户的时候,此时系统发送邮件给用户会出错,此外博主回复给用户,应该不需要再发邮件给博主
错误信息如下
fame-server | 2019-05-18 10:38:48.001 ERROR 1 --- [ task-3] org.thymeleaf.TemplateEngine : [THYMELEAF][task-3] Exception processing template "mail_user": Error resolving template [mail_user], template might not exist or might not be accessible by any of the configured Template Resolvers
fame-server |
fame-server | org.thymeleaf.exceptions.TemplateInputException: Error resolving template [mail_user], template might not exist or might not be accessible by any of the configured Template Resolvers
fame-server | at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098) [thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1059) [thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1048) [thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at com.zbw.fame.service.impl.EmailServiceImpl.sendEmailToUser(EmailServiceImpl.java:80) [classes/:na]
fame-server | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
fame-server | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]
fame-server | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]
fame-server | at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]
fame-server | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343) [spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) [spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) ~[spring-tx-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) ~[spring-tx-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_181]
fame-server | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_181]
fame-server | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_181]
fame-server | at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]
fame-server |
fame-server | 2019-05-18 10:38:48.012 ERROR 1 --- [ task-3] .a.i.SimpleAsyncUncaughtExceptionHandler : Unexpected exception occurred invoking async method: public void com.zbw.fame.service.impl.EmailServiceImpl.sendEmailToUser(com.zbw.fame.model.domain.Comment,java.lang.String)
fame-server |
fame-server | org.thymeleaf.exceptions.TemplateInputException: Error resolving template [mail_user], template might not exist or might not be accessible by any of the configured Template Resolvers
fame-server | at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1059) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1048) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]
fame-server | at com.zbw.fame.service.impl.EmailServiceImpl.sendEmailToUser(EmailServiceImpl.java:80) ~[classes/:na]
fame-server | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
fame-server | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]
fame-server | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]
fame-server | at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]
fame-server | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343) ~[spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) ~[spring-tx-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) ~[spring-tx-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.1.2.RELEASE.jar:5.1.2.RELEASE]
fame-server | at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_181]
fame-server | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_181]
fame-server | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_181]
fame-server | at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]
fame-server |
ERROR: Service 'fame-admin' failed to build: COPY failed: stat /var/lib/docker/overlay2/4a709990bff53ee38d5dade7cdd878e0d3523ee345f5e867a11b1c9f4fca7756/merged/app/dist: no such file or directory
系统 CentOS 7.6
部署过程:
# 更新系统
yum -y update
# 安装依赖包
yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
# 添加yum源
$ sudo yum-config-manager \
--add-repo \
https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
# 官方源
# $ sudo yum-config-manager \
# --add-repo \
# https://download.docker.com/linux/centos/docker-ce.repo
# 更新`yum`软件源缓存
sudo yum makecache fast
# 安装`docker-ce`.
sudo yum install docker-ce
# 启动 Docker CE
sudo systemctl enable docker
sudo systemctl start docker
# [安装 docker-compose](https://github.com/docker/compose/releases)
curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# 安装后确认
docker-compose --version
# 安装命令补全工具
yum -y install bash-completion
curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose
执行错误
[root@iZj6cb5n81znio2q8ii9dsZ Fame]# docker-compose up --build
Building fame-mysql
Step 1/5 : FROM mysql:5.7.23
---> 1b30b36ae96a
Step 2/5 : MAINTAINER zzzzbw "[email protected]"
---> Using cache
---> 8e22dbd64a45
Step 3/5 : ENV LANG C.UTF-8
---> Using cache
---> b85924e84026
Step 4/5 : COPY ./fame-server/src/main/resources/init.sql /docker-entrypoint-initdb.d/init.sql
---> Using cache
---> e0da8cda9358
Step 5/5 : COPY ./fame-docker/fame-mysql/mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf
---> Using cache
---> b18c651fe821
Successfully built b18c651fe821
Successfully tagged fame_fame-mysql:latest
Building fame-server
Step 1/3 : FROM maven:3.5.4-jdk-8
---> 985f3637ded4
Step 2/3 : MAINTAINER zzzzbw "[email protected]"
---> Using cache
---> 9bd745a537f3
Step 3/3 : ENV LANG C.UTF-8
---> Using cache
---> d1657ecee0d9
Successfully built d1657ecee0d9
Successfully tagged fame_fame-server:latest
Building fame-admin
Step 1/15 : FROM node:10.10.0-alpine as build-stage
---> 5ffbcf1d9932
Step 2/15 : ARG BASE_URL
---> Using cache
---> aeaeae6a7e73
Step 3/15 : ENV VUE_APP_API_URL $BASE_URL
---> Using cache
---> 860cb6a56681
Step 4/15 : RUN npm config set registry https://registry.npm.taobao.org
---> Using cache
---> f1672864a45b
Step 5/15 : WORKDIR /app
---> Using cache
---> 75988b960005
Step 6/15 : COPY ./fame-admin/package*.json ./
---> Using cache
---> f23c26a9c56d
Step 7/15 : RUN npm install
---> Using cache
---> fac2dd6d8ac6
Step 8/15 : COPY ./fame-admin .
---> Using cache
---> b5acb738db89
Step 9/15 : RUN npm run build
---> Using cache
---> a341f139d012
Step 10/15 : FROM nginx:1.15.3-alpine as production-stage
---> 994032453556
Step 11/15 : MAINTAINER zzzzbw "[email protected]"
---> Using cache
---> b51d0bdb78be
Step 12/15 : COPY ./fame-docker/fame-admin/nginx.conf /etc/nginx/conf.d/default.conf
---> Using cache
---> fa375473355c
Step 13/15 : COPY --from=build-stage /app/dist /usr/share/nginx/html
ERROR: Service 'fame-admin' failed to build: COPY failed: stat /var/lib/docker/overlay2/4a709990bff53ee38d5dade7cdd878e0d3523ee345f5e867a11b1c9f4fca7756/merged/app/dist: no such file or directory
What is the username and password to log in to the admin panel?
ERROR connect ECONNREFUSED 127.0.0.1:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
大佬,这个咋回事, npm run dev 可以正常跑,npm run build 也可以跑,就这个跑不了
WARN "baseUrl" option in vue.config.js is deprecated now, please use "publicPath" instead.
cause it will make fail :
ERROR: Service 'fame-admin' failed to build: COPY failed: stat /var/lib/docker/overlay2/56e600abdc715ea2d446ee1dc8e10abc3844236b87f70ce70ec3d84b626cd6a7/merged/app/dist: no such file or directory
tip:
use "publicPath" instead, can startup success.
http://www.bihell.com/article/1 本文中「安装 Docker」下面的两个「macOS 安装 Docker」只有第一个连接可用,第二个失效。 md 文件这编写试一样的。排查下来试展示的时候 下面一个标题「手动部署(未完成)」把上面的链接挡住了,导致鼠标没法点击。这个不清楚是组件 bug 还是你这边展示 bug
大佬,你好,我是@abbykimi,我IDE运行您这个项目的时候,提示有几个漏洞,项目调用了org.jsoup:jsoup等103个开源组件,存在1个安全漏洞,建议你升级下。
漏洞标题:Github jsoup安全漏洞
漏洞编号:CVE-2021-37714
漏洞描述:
Github jsoup是一个用于处理真实世界 HTML 的 Java 库。
jsoup 1.14.2之前版本存在安全漏洞,该漏洞可导致jsoup拒绝服务。
影响范围:(∞, 1.14.2)
最小修复版本:1.14.2
引入路径:
com.zbw:[email protected]>com.vladsch.flexmark:[email protected]>com.vladsch.flexmark:[email protected]>org.jsoup:[email protected]
还有其它几个漏洞,信息有点多我就不贴了,你自己看下完整报告:https://www.mfsec.cn/jr?p=i59cbe
如果你对这个issues有任何疑问可以回复我哈( @abbykimi ),我会及时回复你的。
「保存修改」按钮是灰色的,刚看按到还以为无法点击。需要更改
刚写了一篇博客,只选了分类(生活),没设置标签。发布后发现「分类」页面和数量都无法显示该文章。
应该是查询的时候分类和标签耦合度太高,导致判断失误造成的 Bug。
文章地址 [我又买了一个智能门锁 -- 小米米家智能门锁 VS Aqara(绿米)智能门锁S2](http://www.bihell.com/article/3]
有汉字编码不成功,这个怎么解决一下,安装的docker-compose是稳定版的也就是python2.7的
您好,
看了您关于Docker部署项目的文章非常受益,尝试应用到自己项目的时候出现了 Network error. 可能是关于 axios跨域proxy没有很好的理解。
请问方便通过微信或者Slack和您交流一下么?
我在改项目的时候发现 selectMetaDtos 这个方法的性能不太好,每个 id 都要执行一次文章数量 count 的语句。建议修改如下:
public String selectMetaDtos(String type) {
StringBuilder sql = new StringBuilder(
"select t1.id, t1.name, t1.type, count(t3.id) as count\n" +
"from dice.meta t1\n" +
"left join dice.middle t2 on t2.m_id = t1.id " +
"left join dice.article t3 on t3.id = t2.a_id ");
switch (type) {
case Types.SNIPPET_TAG:
sql.append(" and t3.type='" + Types.SNIPPET + "'");
break;
case Types.TAG:
sql.append(" and t3.type='" + Types.POST + "'");
break;
default:
}
sql.append(" and t3.status != '" + Types.DELETE + "'");
sql.append(" where 1=1 ");
sql.append(" and t1.type = #{type} ");
sql.append(" group by t1.id, t1.name, t1.type");
log.info("获取属性以及属性下的文章 sql is :" + sql);
return sql.toString();
}
@:~/1.垃圾/Fame$ docker-compose up
Building fame-admin
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 6.406MB
Step 1/13 : FROM node:16-alpine as build-stage
---> 2573171e0124
Step 2/13 : RUN npm config set registry https://registry.npm.taobao.org
---> Using cache
---> 1a1151e9a40a
Step 3/13 : WORKDIR /app
---> Using cache
---> 7d93c16b69cb
Step 4/13 : COPY ./fame-admin/package*.json ./
---> Using cache
---> bd438274a6f4
Step 5/13 : RUN npm install
---> Using cache
---> a8d0b73155c0
Step 6/13 : COPY ./fame-admin .
---> Using cache
---> 080d581c670b
Step 7/13 : RUN npm run build
---> Running in 41437b4ad22d
> [email protected] build
> vite build
{
VITE_BASE_PATH: '/admin/',
VITE_APP_BASE_SERVER_URL: '/',
VITE_APP_BASE_FRONT_URL: '/'
}
vite v2.9.16 building for production...
transforming...
✓ 27 modules transformed.
[vite:resolve] No known conditions for "./lib/locale/lang/zh-cn" entry in "element-plus" package
error during build:
Error: No known conditions for "./lib/locale/lang/zh-cn" entry in "element-plus" package
at bail (/app/node_modules/vite/dist/node/chunks/dep-6e2fe41e.js:38597:8)
at resolve (/app/node_modules/vite/dist/node/chunks/dep-6e2fe41e.js:38669:9)
at resolveExports (/app/node_modules/vite/dist/node/chunks/dep-6e2fe41e.js:40982:12)
at resolveDeepImport (/app/node_modules/vite/dist/node/chunks/dep-6e2fe41e.js:41000:31)
at tryNodeResolve (/app/node_modules/vite/dist/node/chunks/dep-6e2fe41e.js:40773:20)
at Object.resolveId (/app/node_modules/vite/dist/node/chunks/dep-6e2fe41e.js:40581:28)
at /app/node_modules/rollup/dist/shared/rollup.js:22826:37
The command '/bin/sh -c npm run build' returned a non-zero code: 1
ERROR: Service 'fame-admin' failed to build : Build failed
| ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'deleted' in 'field list'
fame-server | ### The error may exist in com/zbw/fame/mapper/SysOptionMapper.java (best guess)
fame-server | ### The error may involve defaultParameterMap
fame-server | ### The error occurred while setting parameters
fame-server | ### SQL: SELECT id,option_key,option_value,created,modified,deleted FROM sys_option WHERE deleted=0 AND (option_key = ?)
fame-server | ### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'deleted' in 'field list'
fame-server | ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'deleted' in 'field list'
ERROR Failed to compile with 2 errors friendly-errors 10:03:35
ERROR in ./layouts/default.vue friendly-errors 10:03:35
Module Error (from ./node_modules/eslint-loader/index.js): friendly-errors 10:03:35
/Users/haseochen/GitHub/dice/dice-front/layouts/default.vue
18:1 error ../config/default-config
import should occur before import of ~/components/Header.vue
import/order
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the --fix
option.
friendly-errors 10:03:35
@ ./.nuxt/App.js 10:0-47 12:14-23
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js
friendly-errors 10:03:35
ERROR in ./pages/article/_id.vue friendly-errors 10:03:35
Module Error (from ./node_modules/eslint-loader/index.js): friendly-errors 10:03:35
/Users/haseochen/GitHub/dice/dice-front/pages/article/_id.vue
40:1 error tocbot
import should occur before import of ~/components/Comment.vue
import/order
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the --fix
option.
friendly-errors 10:03:35
@ ./.nuxt/router.js 24:24-26:3
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js
friendly-errors 10:03:35
ℹ Waiting for file changes 10:03:35
ℹ Memory usage: 259 MB (RSS: 333 MB)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.