自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(94)
  • 资源 (3)
  • 收藏
  • 关注

转载 使用驱动器G中的光盘之前需要将其格式化该怎么办?

右键其中的一个盘符,点击“属性”,打开“安全”标签,如图,你会发现“组和用户名”下面只有两项,一个是“SYSTEM”,一个是“Administrators”,因此需要添加一个“Users”操作都完成之后,你会发现你的盘符都显示以前正常的名称,但是现在还不能打开移动硬盘,双击显示“拒绝访问”,下面解决这个问题。添加“Users”用户,并将其权限允许项都选上(有的说最后一项不用选),在确定之后会发现出来一个框,提示文件的权限在更改。我的电脑还能显示移动硬盘的三个盘符(比如,我的是L、M和N三个)。

2023-07-29 18:36:56 922

原创 springboot整合CAS实现单点登录

CAS服务端部署服务端就是一个war,修改些配置,部署到tomcat的webapps目录就行了。以下是细节:github下载地址:https://repo1.maven.org/maven2/org/apereo/cas/cas-server-webapp-tomcat/5.3.14/如下图所示下载圈起来的就行要修改的配置,首先解压cas的war由于cas默认使用的是基于https协议,需要改为兼容使用http协议,打开对应你的目录文件:cas\WEB-INF\classes\a

2022-04-14 15:28:51 3377

原创 notepad官网地址

https://notepad-plus-plus.org/

2021-05-29 23:01:15 5616

原创 nginx部署前端配置

server{ listen 8099; server_name 127.0.0.1:8099; root /opt/project/package/dist; location /api/ { proxy_pass http://localhost:127.0.0.1:8099; } ...

2021-04-24 23:24:59 194

原创 详解Java合并数组的两种实现方式

最近在写代码时遇到了需要合并两个数组的需求,突然发现以前没用过,于是研究了一下合并数组的方式,总结如下。1.System.arraycopy()方法(1) 解析通过阅读JDK源码,我可以知道方法原型如下: 1 public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); 其中:src是源数组srcPos是源数组复制

2021-04-13 13:02:27 1532

原创 java利用注解实现简单的excel数据读取

java利用注解实现简单的excel数据读取实现工具类利用注解实现简单的excel数据读取,利用注解对类的属性和excel中的表头映射,使用Apache的poi就不用在业务代码中涉及row,rows这些属性了。定义注解: 1 2 3 4 5 6 7 @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interf

2021-04-09 21:41:12 292

原创 SCMMANAGER部署linux环境

现目前有很多种方式,这里介绍两种 War包方式部署 下载war后部署到tomcat上就行了 https://www.scm-manager.org/download/archive/点击上方链接,找到红色圈起来的地方下载即可 Unbuntu安装 echo'deb [arch=all] https://packages.scm-manager.org/repository/apt-v2-releases/ stable main'|su...

2020-08-09 15:25:26 427

原创 mybatis # 和 $的区别

#先编译后取值,编译后有双引号,可以防止sql注入$先取值后编译,编译后无双引号,不能防止sql注入一般用于传递表名,字段名,group by总结:能用#就不用$

2020-06-04 21:59:25 239

原创 Error:(14,24) java: 程序包sun.reflect.misc不存在

今天自己给自己挖了一个坑,写代码导入了import sun.reflect.misc.FieldUtil;结果依赖和jdk里面都没有这个包导致报错Error:(14,24) java: 程序包sun.reflect.misc不存在查了半天以为好高级的报错,结果就是没有这个jar,在import里面注释掉即可,坑啊,所以看报错信息很仔细才行记录下...

2020-05-24 11:51:12 3132

原创 处理kdevtmpfsi病毒

看了网上杀pid那些方法,不会搞参考阿里云的建议https://help.aliyun.com/knowledge_detail/37447.html?spm=a2c4g.11186631.2.2.828c1848kuRv6p自己搞下试试Redis服务安全加固KB:37447·更新时间:2017-12-04 14:19:08一.背景描述1.漏洞描述Redis 因配置不当存在未授权访问漏洞,可以被攻击者恶意利用。在特定条件下,如果 Redis 以 roo...

2020-05-23 00:09:02 270

原创 Invalid bound statement (not found): com.itheima.chapter0301.mapper.ArticleMapper.selectArticle

Invalid bound statement (not found): com.itheima.chapter0301.mapper.ArticleMapper.selectArticle原因分析:找不到selectArticle方法,说明ArticleMapper到ArticleMapper.xml的映射除了问题解决方法:仔细对ArticleMapper.xml的namespace属性,或Crtl+鼠标左键点击 看能否跳转到ArticleMapper,发现写错了,修正即可...

2020-05-21 20:04:25 2584 3

原创 Spring 国际化异常

springMVC 国际化 异常:No message found under code 'message' for locale 'zh_CN'.我的springmvc-config.xml是这样配置的原因分析:spring找不到国际化文件解决:针对p:basenames="message"这样配置,国际化文件应该放在src根路径下,这样才能找到...

2020-05-14 17:08:59 286

原创 后端接受前端post数据乱码

web.xml文件加上如下代码<!-- post请求乱码拦截器 --><filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> .

2020-05-09 18:01:09 661 1

原创 Truncated incorrect DOUBLE value

mysql执行sql报错:UPDATE t_comment SET content="大哥说的对" AND author="关羽" AND a_id=1 WHERE id=5> 1292 - Truncated incorrect DOUBLE value: '大哥说的对'> 时间: 0.125s原因分析:sql语法错误,更新操作更新多个值时,应该用“,”链接解...

2020-04-27 22:43:41 1344

原创 Unmapped Spring configuration files found. Please configure Spring facet or use 'Create Default ...

idea做springboot项目的时候遇到一个提示:Unmapped Spring configuration files found.Please configure Spring facet or use 'Create Default Context' to add one including all unmapped files这个产生的原因是上图红色圈中的文件没有被sp...

2020-04-19 23:06:28 4975

原创 Cannot access nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) in offline mode ...

package是报错Cannot access nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) in offline mode and the artifact org.apache.maven.surefire:maven-surefire-common:pom:2.22.2 has not been do...

2020-04-19 17:44:52 6487

原创 maven configuration problem unkonw

https://jingyan.baidu.com/article/da1091fb93d53d427849d6f7.html问题:Maven pom.xml 文件中第一行报错,problems中提示 Unknown Maven Configuration Problem起因:eclipse使用springboot插件生成maven项目时出现问题原因:使用springboot插件...

2019-12-24 10:43:58 139

转载 springboot整合email

https://jingyan.baidu.com/article/e4d08ffd4df5cf0fd2f60d2f.html

2019-12-23 11:54:20 386

转载 Failed to start Advanced key-value store.

https://www.jianshu.com/p/93085829535c

2019-12-14 22:55:20 4724

转载 idea安装流程

https://baijiahao.baidu.com/s?id=1632681005446888074&wfr=spider&for=pchttps://blog.csdn.net/m0_37392489/article/details/86165072https://blog.csdn.net/langyichen/article/details/90677380#co...

2019-11-25 22:16:01 141

原创 Ubuntu18.04系统下搭建Scm Manager

1.安装jdk环境,我是apt方式安装的,也可以到Oracle的官网下载jdk安装,这里不做介绍,因为还要注册Oracle账号apt install openjdk-8-jdk2.安装tomcat,我是直接下载8.5的解压版,你在服务器里apt安装也行,这里不做介绍3.下载Scm Manager,官网下载地址:https://www.scm-manager.org/download...

2019-11-20 19:10:41 424

转载 oauth2.0资料

https://www.jianshu.com/p/fe1194ca8ecdhttp://www.manongjc.com/detail/6-voltamkdmhksrgz.htmlhttps://segmentfault.com/a/1190000012309216?utm_source=tag-newesthttps://www.jianshu.com/p/e5ae...

2019-07-31 21:33:49 90

原创 idea报红

能编译过就不管他,工具问题

2019-07-20 16:19:54 428

原创 504 502 bad gateway 运维问题 url报红,可能是前端调用后台链接有误

504502bad gateway运维问题url报红,可能是前端调用后台链接有误

2019-07-11 10:35:59 507

原创 idea的maven操作

reimport all maven projects重新导入所有maven项目generate resource and update folders for all projects为所有项目生成资源和更新文件夹

2019-07-10 09:18:36 1095

原创 简单好用的在线接口文档管理工具 立即使用

http://www.xiaoyaoji.cn/

2019-07-08 20:09:00 2154

转载 YAML 语言教程

http://www.ruanyifeng.com/blog/2016/07/yaml.html?f=tt

2019-07-02 20:14:21 101

转载 OAuth2.0

http://www.ruanyifeng.com/blog/2019/04/oauth_design.htmlhttp://www.ruanyifeng.com/blog/2019/04/oauth-grant-types.htmlhttp://www.ruanyifeng.com/blog/2019/04/github-oauth.html

2019-06-28 14:15:32 122

原创 attempted to return null from a method with a primitive return type (int).

在mybatis的mapper.xml和mapper文件映射时,注意返回为空的情况这里写成对象不要写成int

2019-06-25 17:48:50 629

原创 fatal: unable to access '/': The requested URL returned error: 403

remote: Forbiddenfatal: unable to access '/': The requested URL returned error: 403git did not exit cleanly (exit code 128) (546 ms @ 2019/6/25 16:35:35)解决方法:删除之后重新拉取,切换到自己分支(就是clone下来后把里面内容删除把之...

2019-06-25 17:41:37 4207

转载 Absernt line Number Information

出现这个原因通常都是环境因素,可以更改下项目和环境的Jre配置或是classfile generation.对启动项目的影响不大,建议点方框就可以。https://blog.csdn.net/xiaoxiaovbb/article/details/82225900?utm_source=blogxgwz7...

2019-06-18 20:01:06 137

转载 swagger应用

http://blog.didispace.com/springbootswagger2/https://blog.csdn.net/sanyaoxu_2/article/details/80555328

2019-06-14 20:45:59 137

转载 String字符串转成List对象

https://www.jianshu.com/p/701ae370f959https://www.cnblogs.com/atomicbomb/p/6677955.html

2019-06-14 16:54:30 19341

原创 spring-boot-maven-plugin和properties-maven-plugin区别

https://www.cnblogs.com/qyf404/p/4833261.htmlhttps://blog.csdn.net/hanys_csdn/article/details/80232262读properties文件https://www.cnblogs.com/boshen-hzb/p/6873528.html

2019-06-11 13:53:16 1138

原创 transparent native-to-ascii设置

https://www.jetbrains.com/help/idea/settings-file-encodings.html官方文档建议勾选https://blog.51cto.com/13604100/2318310

2019-06-11 11:35:19 431

原创 \t的意思

\t是补全当前字符串长度到8的整数倍,最少1个最多8个空格,补多少要看你\t前字符串长度。比如当前字符串长度10,那么\t后长度是16,也就是补6个空格。如果当前字符串长度12,此时\t后长度是16,补4个空格另付字符表对照:...

2019-05-18 17:50:03 68059 8

原创 arrays.copyof和system.arraycopy的区别和联系

system.arraycopy是复制数组中制定元素到目标数组,arrays.copyof会创建一个新的数组,并调用了system.arraycopy,具体见源码public static int[] copyOf(int[] original, int newLength) { int[] copy = new int[newLength]; Syst...

2019-05-18 11:30:07 304

转载 枚举学习

http://c.biancheng.net/view/1100.htmlhttps://blog.csdn.net/hellojoy/article/details/79883671

2019-05-17 22:55:32 155

原创 switch接受什么类型数据

Cannot switch on a value of type long. Only convertible int values, strings or enum variables are permitted官方的解释,就是说支持char、byte、short、int、string、枚举类型数据。...

2019-05-17 16:29:16 563

原创 The APR based Apache Tomcat Native library which allows optimal performance in production environmen

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [E:\softwarework\jdk1.8\jdk\bin;C:\WINDOWS\Sun\Java\b...

2019-04-27 16:10:44 154

SpringBoot整合CAS文件资料

SpringBoot整合CAS文件资料 包含服务端war 客户端代码

2022-04-14

多种方式读取Properties代码示例

多种方式读取Properties代码示例

2019-06-26

动态创建和切换数据源

里面有三个动态创建和切换数据源的demo里面有三个动态创建和切换数据源的demo

2018-12-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除