老鬼的博客 来都来啦,那就随便看看吧~
Next主题配置
发布于: 2018-05-13 更新于: 2023-11-08 分类于: Hexo

1.路径

E:\my-tools\hexo-blog\themes\next_config.yml

path

2.站标

1
2
3
4
5
6
7
8
9
10
11
12
## 站标
favicon:
small: /images/favicon.ico
medium: /images/favicon.ico
apple_touch_icon: /images/favicon.ico
safari_pinned_tab: /images/favicon.ico
#small: /images/favicon-16x16-next.png
#medium: /images/favicon-32x32-next.png
#apple_touch_icon: /images/apple-touch-icon-next.png
#safari_pinned_tab: /images/logo.svg
#android_manifest: /images/manifest.json
#ms_browserconfig: /images/browserconfig.xml
阅读更多
Hexo主题配置
发布于: 2018-05-12 更新于: 2023-11-08 分类于: Hexo

1.路径

  • 本地路径

    E:\my-tools\hexo-blog_config.yml

路径

2.网站信息

2.1 内容

1
2
3
4
5
6
7
8
# Site
title: 老鬼
subtitle: 来都来啦,那就随便看看吧~
description: 知识分享,日常记录
keywords:
author: RenJie
language: zh-Hans
timezone:
阅读更多
常用知识点
发布于: 2018-05-11 更新于: 2019-11-12 分类于: 

struts2控制字符串的长度

1
2
3
4
5
6
<s:if test="wxUser.nickName.length()>8">
<s:property value="wxUser.nickName.substring(0, 8)"/>
</s:if>
<s:else>
<s:property value="wxUser.nickName"/>
</s:else>
阅读更多
Jdk1.6和Jdk1.7编译运行Java文件
发布于: 2018-05-11 更新于: 2023-11-08 分类于: Java

一:源码下载

二:Jdk版本切换

  • Jdk1.6
    1
    2
    3
    set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_45"
    set PATH=%JAVA_HOME%\bin;C:\Windows\system32;C:\Windows;
    java -version
阅读更多
Hexo+Next配置百度网站统计
发布于: 2018-05-08 更新于: 2023-11-08 分类于: Hexo

一:注册百度网站统计账号

二:新增网站

新增网站1
新增网站2

Hexo+Nginx+SVN搭建网站
发布于: 2018-05-08 更新于: 2023-11-08 分类于: Hexo

一下载Notejs

二:配置Not...

阅读更多
mysql处理emoji
发布于: 2018-05-08 更新于: 2023-11-08 分类于: Java > emoji

一:错误提示

Incorrect string value: ‘\xF0\x9F\x8C\xB8’ for column ‘nick_name’ at row 1

二:修复方案

2.1 修改字段编码为utf8mb4

1
将字段的编码改成utf8mb4即可
阅读更多
Tomcat优化
发布于: 2018-04-28 更新于: 2018-05-08 分类于: Tomcat

server.xml配置

配置最大接受的请求数,最小最大线程数等信息

  • 配置内容如下

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    <Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    redirectPort="8443"
    URIEncoding="UTF-8"
    maxThreads="250"
    maxHttpHeaderSize="8192"
    disableUploadTimeout="true"
    acceptCount="80"
    emptySessionPath="true"
    enableLookups="false"
    compression="500"
    compressableMimeType="text/html,text/xml,text/plain,application/octet-stream"
    />
阅读更多
Tomcat配置JNDI
发布于: 2018-04-28 更新于: 2018-05-08 分类于: Tomcat

方式一

  • 在context.xml配置resource
1
2
3
4
5
6
7
8
9
10
11
12
<Resource 
name="jdbc/tbplus"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="a123456"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1:3306/bearoff"
/>
阅读更多
SVN常见错误
发布于: 2018-04-28 更新于: 2019-11-23 分类于: SVN

SVN常见错误

VisualSVN Server post commit hook失效

post commit hook

0.png

阅读更多