- 博客(41)
- 资源 (2)
- 问答 (2)
- 收藏
- 关注
原创 Springboot用官方建议访问Html页面并接传值
pom<!--添加static和templates的依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b
2018-12-26 22:04:40 1846
原创 返回的数据不符合规范,正确的成功状态码 (code) 应为:0
Spring 整合 layui 报错 后台代码package com.jakcray.springbootshiro.manage;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONObject;import com.jakcray.springbootshiro.controller.TestContr...
2018-12-24 21:06:46 23491 3
原创 一天一篇博客----玩转设计模式之策略模式
核心思想策略模式:分别封装行为接口,实现算法族;超类里放行为接口对象,在子类里面具体设定行为对象。原则是就是:分离变化部分 ,封装接口,基于接口编程的各种功能。此设计模式让行为算法的变化独立于算法的使用者。定义duck的抽象类定义duck的叫声,飞行的接口定义duck的飞行算法族和叫声的算法族定义对象类,引入算法族里面想要的算法实现解耦合,增加项目的灵活性源码git地址策...
2018-12-24 09:41:16 223
原创 夜神模拟器查看端口信息
夜神模拟器默认端口62001 第二个端口62005 后面依次+13个夜神模拟器,adb devices一下,会看到如下信息: C:\Program Files (x86)\Nox\bin>nox_adb devices List of devices attached 127.0.0.1:62001 device 127...
2018-12-22 17:17:26 10180 2
原创 idea 注册码 亲测可用 2018年12月22日
K03CHKJCFT-eyJsaWNlbnNlSWQiOiJLMDNDSEtKQ0ZUIiwibGljZW5zZWVOYW1lIjoibnNzIDEwMDEiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiRm9yIGVkdWNhdGlvbmFsIHVzZSBvbmx5IiwiY2hlY...
2018-12-22 15:27:43 805
原创 springboot整合shiro的session问题UnknownSessionException: There is no session with id
报错信息如下[2018-12-19 02:25:13.852][http-nio-8077-exec-8][DEBUG][org.apache.shiro.web.servlet.SimpleCookie][389]:Found 'SHRIOSESSIONID' cookie value [2387e612-1c34-44b5-b00f-faa2937e2c7f][2018-12-19 02:...
2018-12-19 02:45:51 7985 11
原创 shiro1.4根据url拦截可以生效但是根据路径拦截就不生效
//设置控制map Map<String,String> filterChainDefinitionMap = new LinkedHashMap<>(); //配置不会被拦截的链接 顺序判断// filterChainDefinitionMap.put(&am
2018-12-17 20:35:01 2051
原创 idea常用快捷键
IntelliJ Idea 常用快捷键列表Alt+回车 导入包,自动修正Ctrl+N 查找类Ctrl+Shift+N 查找文件Ctrl+Alt+L 格式化代码Ctrl+Alt+O 优化导入的类和包Alt+Insert 生成代码(如get,set方法,构造函数等)Ctrl+E或者Alt+Shift+C 最近更改的代码Ctrl+R 替换文本Ctrl+F 查找文本Ctrl+Sh...
2018-12-16 19:04:59 148 1
原创 springboot整合log4j2
项目目录如下:pom特别注意,在由spring-boot的依赖中默认添加了日志,需要去掉之后log4j2才可以生效,否则包冲突。<exclusions> <exclusion> <groupId>org.s
2018-12-16 16:11:50 5064
原创 springboot整合mybatis
application.propertiesspring.datasource.type=com.alibaba.druid.pool.DruidDataSourcespring.datasource.url=jdbc:mysql://127.0.0.1:3306/xq?useUnicode=true&characterEncoding=UTF-8&useJDBCCompli...
2018-12-16 15:38:09 222
原创 mysql加外键报错 ERROR 1826: Duplicate foreign key constraint name 'idXXXX'
Operation failed: There was an error while applying the SQL script to the database.Executing:ALTER TABLE `xq`.`manageinfo` ADD CONSTRAINT `idmanagetype` FOREIGN KEY (`idmanagetype`) REFERENCES ...
2018-12-15 12:45:33 25197 1
原创 第二章、springboot+shiro身份验证--------shiro学习笔记
身份验证,即在应用中谁能证明他就是他本人。一般提供如他们的身份ID一些标识信息来表明他就是他本人,如提供身份证,用户名/密码来证明。在shiro中,用户需要提供principals (身份)和credentials(证明)给shiro,从而应用能验证用户身份:principals:身份,即主体的标识属性,可以是任何东西,如用户名、邮箱等,唯一即可。一个主体可以有多个principa...
2018-12-14 20:46:04 175
原创 第一章、Shiro简介--------shiro学习笔记
前言:之前在项目团队中很少接触权限的东西,最近自己做几个项目,自己架构了一个权限框架**双token+md5+aes+auth,说实话勉强可以满足安全需求。做完项目之后自己鼓捣高并发,发现我自己写的框架有很多缺陷,于是想找个开源的框架学习一下,找了一些博客看的我头大而且讲的比较基础。于是去官网巴拉了一下官网文档,找到张老师的博客教程,准备一边学习一边记下笔记。如有错误还请不吝赐教!shiro是...
2018-12-14 18:52:04 153
原创 Connected to the target VM, address: '127.0.0.1:58177', transport: 'socket'
网上查了一些资料说是testpackage com.ttxq.tt;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.boot.test.context.SpringBootTest;import org.springframework.test.context.junit...
2018-12-11 15:37:31 98031 1
原创 spring boot报错SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/C:/Users/%e5%b0%98%e5%8a%ab%e7%a7%91%e6%8a%80/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic...
2018-12-11 13:13:42 1105 1
原创 springboot连接数据库com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to par
前端报错:Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Tue Dec 11 02:12:09 CST 2018There was an unexpected error (type=Internal Server...
2018-12-11 02:22:33 18272 2
原创 springboot生成的*mapper.xml id重复
原配置文件 <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> <table tableName="user" domainObjectName="UserDAO" enableCountByExample="
2018-12-11 01:45:19 1152
原创 springboot 启动报错 Error creating bean with name 'userDAOMapper' defined in file
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-12-11 00:57:00.093 ERROR 152276 --- [ main] o.s.boot.SpringApplication ...
2018-12-11 01:08:01 30530 12
原创 springboot2.1加载不到mapper的方法
前台报错Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Tue Dec 11 00:08:33 CST 2018There was an unexpected error (type=Internal Server ...
2018-12-11 00:10:51 1298
原创 idea springboot generator生成代码 8.XXX
pom <build> <plugins> <plugin> <groupId&am
2018-12-10 20:42:06 437
原创 Unable to load authentication plugin 'caching_sha2_password'
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project tt: Unable to load authentication plugin 'caching_sha2_password'. -> [Hel...
2018-12-10 20:29:59 1372
原创 spring boot generator生成代码 5.7mysql 而非8.XXX
pom.xml <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId&a
2018-12-10 19:27:08 341
原创 maven打包加载不到本地/lib下的jar
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>sprin
2018-12-09 16:31:29 540
原创 openoffice 4.1.6 start
soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &
2018-12-08 01:34:42 473
原创 log4j 1.2.17 config
<!-- https://mvnrepository.com/artifact/log4j/log4j--> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17<
2018-12-08 00:30:36 311
原创 ubuntu下安装putty
安装命令如下: sudo apt-get install putty快捷方式sudo ln -s /usr/bin/putty ./putty
2018-12-07 20:16:22 960
原创 tomcat8005 端口不了或者启动缓慢
设置vi $JAVA_HOME/jre/lib/security/java.security原本为random 改成urandomsecurerandom.source=file:/dev/urandom参考地址
2018-12-06 16:01:35 550
原创 ubuntu16 设置mysql远程链接
use mysql;select * from user;//可以看到所有的用户,HOST为local的只可以本地连接,也可以指定IP链接,设置为%所有用户可以远程链接设置想使用远程连接的用户的HOST为%修改配置文件(ubuntu16)sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf注释bind-address = 127.0.0.1重启my...
2018-12-05 15:05:59 202 1
原创 linux配置tomcat将80端口转发到8080端口
将80端口转发到8080端口#iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080参考地址
2018-12-04 18:13:46 1165
原创 ubuntu16安装mysql 有设置root密码界面
授权远程连接用户create user user02@'%' identified by 'password'配置参考地址操作参考地址
2018-12-04 17:48:55 172
原创 阿里云ubuntu ftp以及22端口全都拒绝链接
安装一下openssh问题解决了sudo apt-get install openssh-server参照地址
2018-12-04 17:21:40 1001
原创 阿里云链接ftp报错: 20 秒后无活动,连接超时 错误: 无法连接到服务器
错误: 20 秒后无活动,连接超时错误: 无法连接到服务器端口改成22可以了。。。why?why?why?链接地址
2018-12-04 11:54:38 6665
原创 ubuntu ftp config
listen=NOlisten_ipv6=YESanonymous_enable=YESlocal_enable=YESwrite_enable=YESlocal_umask=022anon_upload_enable=YESanon_mkdir_write_enable=YESdirmessage_enable=YESuse_localtime=YESxferlog_enab...
2018-12-04 11:34:08 215
原创 FastJson解析String为泛型对象
AggParamDAO&amp;amp;amp;amp;amp;lt;College&amp;amp;amp;amp;amp;gt; aggParamDAO = new AggParamDAO&amp;amp;amp;amp;amp;lt;College&amp;amp;amp;amp;amp;gt;(); // 解密 String decryption = businessDATAEnDecryptionImpl.Decrypti
2018-12-03 11:15:18 962
SecureCRT v8.x 注册机
2019-05-06
MyCommentGenerator
2018-11-23
java知识点 与dom4j 相关
2016-11-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人