自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(32)
  • 资源 (1)
  • 收藏
  • 关注

原创 问题记录(使用printf打印时,不加\n无法立即打印)

打印时 printf(“---------------------------------- %d\n”,keyValue[0]);处不加\n则无论按多少次按键都无法打印。

2024-05-11 08:32:43 207 1

原创 FreeRtos中断管理问题记录(触发外部中断后,屏蔽失效)

屏蔽中断后,通过B11引脚触发外部中断,屏蔽失效。试了其他引脚B14,A3都是正常的,不明原因,记录一下。

2024-03-23 10:59:44 307 1

原创 记录1····

Establishing SSL 真connection without server’s identity verification is not recommended.According to MySQL的 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be报错记录投诉抄袭,什么时候能智能一点呢,只是为了记录一下罢了established by default 绝if explicit option isn’t set.

2021-12-09 14:19:42 552

原创 qt报错记录 no matching function call to ‘QObject::connectImpl(......

遇到的错误一直没找到原因,记录一下

2021-10-25 15:51:57 1814 2

原创 命名管道简单使用,以及局域网通信遇到的坑

命名管道的使用一台计算机中的进程间通信一台计算机中的进程间通信这种用法感觉是命名管道使用最普遍的方式,下面是根据网上大神的帖子,添加了一些代码,目的是实现局域网内的管道通信,具体还不是很明白,原帖https://bbs.youkuaiyun.com/topics/310203566注意管道名称的格式为\\servername\pipe\pipename 其中,如果是创建管道,servername必须为 . 如果是想获取局域网中服务器的管道,则servername应该是服务器的计算机名称,加引号是注意\

2021-08-12 11:00:13 550 2

原创 org.springframework.beans.factory.BeanDefinitionStoreExcepti

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [H:\IDEAPROJECT\mybatis_plus\target\classes\com\lkyyy\MybatisPlusApplication.class]; nested exception is java.lang.annotation.AnnotationFormatErr

2021-06-01 14:18:37 220

原创 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p

2021-05-13 17:58:23.257 ERROR 3780 --- [nio-8080-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exce

2021-05-13 18:01:33 1711

原创 java.lang.NoSuchMethodException:使用Java反射创建对象保错

java.lang.NoSuchMethodException: com.lkyyy.test02.Student.(com.lkyyy.test02.Student)at java.base/java.lang.Class.getConstructor0(Class.java:3349)at java.base/java.lang.Class.getConstructor(Class.java:2151)at com.lkyyy.test02.fanshe.main(fanshe.java:20)

2021-04-22 17:00:42 629

原创 redis.conf详解-08

Redis.conf详解1、配置文件unit单位对大小写不敏感2、include可以引入其他配置文件3、网络bind 127.0.0.1 #绑定ipprotected-mode yes #保护模式port 6379 #端口设置4、通用GENERALdaemonize yes #以守护进程的方式运行,默认是no,我们需要开启为yes!pidfile /var/run/redis_6379.pid #如果以后台的方式运行,我们就需要指定一个pid文件!loglevel not

2021-04-21 17:59:28 82

原创 redis SpringBoot整合-07

SpringBoot整合spring2.x之后,jedis被替换为lettuce 2.4.5又有了jedis:采用的直连,多个线程操作的话,是不安全的,要避免这种情况就要使用jedis pool连接池!BIO模式lettuce:采用netty,实例可以在多个线程中进行共享,不存在线程不安全的情况!可以减少线程数据,更像NIO模式//RedisAutoConfiguration//默认的RedisTemplate没有过多的设置,redis对象都是需要序列化的@Configuration(p

2021-04-21 17:55:47 88

原创 redis Jedis-06

导入依赖<dependencies> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.3.0</version> </dependency> <dependency> &

2021-04-21 17:52:46 85

原创 redis事务-05

redis事务Redis单条命令保证原子性的,但是事务不保证原子性Redis事务没有隔离级别的概念ACID原则(原子性,一致性,隔离性,持久性)//开启事务127.0.0.1:6379> multiOK127.0.0.1:6379> set k1 v1QUEUED127.0.0.1:6379> set k2 v2QUEUED127.0.0.1:6379> get k2QUEUED127.0.0.1:6379> set k3 v3QUEUED12

2021-04-21 17:39:53 61

原创 redis三种特殊数据类型-04

geospatial地理位置朋友的定位,附近的人,打车距离计算Redis的Geo在Redis3.2版本推出,这个功能可以推算出地理位置信息,,两地之间的距离,方圆几里的人可以查询一些测试数据相关命令GEOADDGEODISTGEOHASHGEOPOSGEORADIUSGEORADIUSBYMEMBER//geoadd添加地理位置//规则:两极无法直接添加,我们一般会下载城市数据,直接通过java程序一次性导入//参数 key 值(经度、纬度、名称)127.0.0.1:6

2021-04-21 17:35:30 111

原创 redis五大数据类型-03

五大数据类型官方介绍Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 字符串(strings), 散列(hashes), 列表(lists), 集合(sets), 有序集合(sorted sets) 与范围查询, bitmaps, hyperloglogs 和 地理空间(geospatial) 索引半径查询。 Redis 内置了 复制(replication),LUA脚本(Lua scripting), LRU驱动事件

2021-04-21 17:31:11 80

原创 redis常用命令-02

//切换数据库127.0.0.1:6379> select 3OK//数据库中字段127.0.0.1:6379[3]> DBSIZE(integer) 0127.0.0.1:6379[3]> set name lkyyyOK127.0.0.1:6379[3]> get name"lkyyy"127.0.0.1:6379[3]> keys *1) "name"//清空当前数据库127.0.0.1:6379[3]>flushdb//清空全部数据库

2021-04-21 17:13:09 78

原创 redis概述与安装-01

Nosql概述大数据时代,一般的数据库无法进行分析处理了not only sql 泛指非关系型数据库特点:方便扩展(数据之间没有关系)大数据量高性能(Redis一秒写8万次,读取11万次,NoSQL的缓存记录级别,是一种细粒度的缓存,性能比较高)数据类型是多样型的!(不需要事先设计数据库,随取随用,如果是数据量十分大的表,)传统RDBMS和NoSQL传统的RDBMS–结构化组织–SQL–数据和关系都存在单独的表中 rol col–严格的一致性–基础的事务Nosql-

2021-04-21 17:09:42 74

原创 Spring声明式事务

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springf

2021-04-21 16:52:10 70

原创 搭建一个SSM框架

1、创建maven项目2、导包junit,数据库驱动,连接池,servlet,jsp,mybatis,mybatis-spring,spring<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.

2021-04-02 16:11:51 121

转载 @Controller,@Service,@Repository,@Component注解的异同(转载学习记录)

相同点:@Controller,@Service,@Repository都有带@Component父注解,四个注解都可以说成是Component级别的注解,Spring框架自动扫描的注解也是检测是否有Component注解标记。把普通pojo实例化到spring容器中,相当于配置文件中的。这三个注解它们除了@Component的属性外还有其他的的场景应用。@Repository这个注解用来标识这个类是用来直接访问数据库的,dao层使用@repository注解。如@Repository(value=“

2021-04-02 10:50:00 297

原创 @ConfigurationProperties注解

@ConfigurationProperties(prefix = “person”)将配置文件中配置的每一个属性的值(yaml文件中),映射到这个组件中;告诉springboot将本类中的所有属性和配置文件中相关的配置进行绑定参数perfix = “person” 将配置文件中的person下面的所有属性一一对应只有这个组件时容器中的组件,才能使用容器提供的@ConfigurationProperties功能@Component//注入bean@ConfigurationProperties(

2021-04-02 10:41:15 213

原创 nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

2021-03-24 16:46:48.054 ERROR 11552 — [nio-8001-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.b

2021-03-24 17:00:24 520 1

原创 Exception encountered during context initialization - cancelling refresh attempt: org.springframewor

报错记录log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog).log4j:WARN Please initialize the log4j system properly.三月 09, 2021 11:36:16 上午 org.springframework.context.support.AbstractApplicationContext refresh警告: Exception encounter

2021-03-09 11:39:50 1110 3

原创 springmvc-interceptor 拦截器

实现HandlerInterceptor 接口package com.lkyyy.config;import org.springframework.lang.Nullable;import org.springframework.web.method.HandlerMethod;import org.springframework.web.servlet.HandlerInterceptor;import org.springframework.web.servlet.ModelAndView;

2021-02-22 17:47:02 99 5

原创 获取对象的Json格式简单自定义工具类

使用Json简单自定义工具类package com.lkyyy.utils;import com.fasterxml.jackson.core.JsonProcessingException;import com.fasterxml.jackson.databind.ObjectMapper;import com.fasterxml.jackson.databind.SerializationFeature;import java.text.SimpleDateFormat;public cl

2021-02-22 17:32:28 119

原创 springmvc-json乱码问题

在springmvc配置文件中添加<!-- Json乱码问题配置--> <mvc:annotation-driven> <mvc:message-converters register-defaults="true"> <bean class="org.springframework.http.converter.StringHttpMessageConverter"> &

2021-02-22 17:22:32 100

原创 springmvc-过滤器

在web.xml中添加 <filter> <filter-name>encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding

2021-02-22 17:19:34 198

原创 springmvc配置文件和注解方式实现

一、使用配置文件controllerpublic class Hello implements Controller { public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { ModelAndView mv = new ModelAndView(); //业务代码 String r

2021-02-22 17:14:02 103

原创 springmvc-restful

restful风格@Controllerpublic class RestfulController { //http://localhost:8080/Restful?a=1&b=2 原来的 //http://localhost:8080/Restful/a/b Restful //@RequestMapping(value={"/Restful/{a}/{b}"},method= RequestMethod.DELETE) //@Delet

2021-02-22 17:13:08 81

转载 Spring实现AOP的方式

Spring-AOP贴上所写的类和接口application.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/s

2021-02-22 16:25:25 73

原创 动态代理实现

动态代理实现类动态代理的本质,就是使用反射机制package com.lkyyy.demo3;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;public class ProxyInvocationHandler implements InvocationHandler { private Object target;

2021-02-22 15:48:17 160 1

原创 ssm框架需要的包

搭建一个ssm框架需要的包<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.1</version> <scope>test</scope

2021-01-15 09:29:41 176 2

原创 .xml文件位置

ssm框架学习小记.xml文件放在Java文件夹中时,需要在pom.xml中加入 <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xm.

2021-01-14 14:50:12 2248

51单片机介绍

对51单片机介绍的ppt,对学习单片机应该还是有帮助的吧,,

2018-12-23

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

TA关注的人

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