自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(109)
  • 收藏
  • 关注

原创 Quartz个人笔记非教程

【代码】Quartz个人笔记非教程。

2024-02-02 17:43:31 452

原创 RedisTemplate(个人笔记,非教程)

【代码】RedisTemplate(个人笔记,非教程)

2024-02-02 17:39:18 98

原创 springboot 使用redission后,redis缓存报错 cannot be cast to

【代码】springboot 使用redission后,redis缓存报错 cannot be cast to。

2024-01-20 10:51:06 517

原创 解决springboot集成redission后,redis缓存报错Cannot find cache named

【代码】解决springboot集成redission后,redis缓存报错Cannot find cache named。

2024-01-19 19:52:28 618

原创 springboot自定义缓存注解(个人笔记,非教学)

原理是使用springboot aop在运行方法前检查是否已经有缓存。

2023-12-12 17:20:33 63

原创 forwardRef, useImperativeHandle实现父组件调用子组件方法(个人笔记,非教程)

【代码】forwardRef, useImperativeHandle实现父组件调用子组件方法(个人笔记,非教程)

2023-10-10 15:33:51 274

原创 springboot接口异常处理(个人笔记,非教程)

【代码】springboot接口异常处理(个人笔记,非教程)

2023-03-24 11:14:23 140

原创 RabbitMQ学习

【代码】RabbitMQ学习。

2022-12-22 09:22:09 110

原创 jpa同步数据库数据到缓存实体(个人笔记非教程)

@PersistenceContext private EntityManager em; @Transactional // 必须使用事务public void test(){ User savedUser = userRepository.saveAndFlush(newUser); em.refresh(savedUser);}

2022-04-18 17:49:29 629

原创 springboot多例注入(个人笔记,非教程)

@Autowired private ObjectFactory<Spu> spu; //取值 spu.getObject()

2022-03-30 21:31:04 729

原创 Invalid bound statement (not found)

除了常见的解决方法外,本人是通过这个方法解决在application.yml文件中配置mybatis: mapper-locations: classpath:mapper/*.xml

2022-03-25 22:17:57 225

原创 uniapp纯css实现瀑布流(个人笔记)

.list { // 外层容器 -moz-column-count: 2; /* Firefox */ -webkit-column-count: 2; /* Safari 和 Chrome */ column-count: 2; } .item { //每个元素 width: 1.66rem; -moz-page-break-inside: avoid; -webkit-col.

2022-03-18 09:41:08 250

原创 npm项目引入不同版本的npm包

npm install swiper2@npm:swiper@2.7.6 -S

2021-09-26 15:33:23 644

原创 rabbitmq(个人笔记非教程)

maven 依赖<dependency> <groupId>com.rabbitmq</groupId> <artifactId>amqp-client</artifactId> <version>5.8.0</version> </dependency> <dependency>

2021-09-16 22:12:58 103

原创 prettier(个人笔记,非教程)

依赖 package.json "scripts": { "format": "prettier --write .", "test": "echo \"Error: no test specified\" && exit 1", "prepare": "husky install" }, "keywords": [], "author": "", "license": "ISC", "dev

2021-09-14 21:17:54 192

原创 cli开发学习记录(个人笔记非教程)

"colors":"^1.4.0", 控制台带颜色输出"path-exists":"^4.0.0", 判断文件路径是否存在"root-check":"^1.0.0", 切换为非root用户"semver":"^7.3.5", 对比版本号大小"userhome":"^1.0.0" 获取用户家目录np...

2021-08-03 19:41:48 91

原创 SpringBoot中@WebFilter导致@ControllerAdvice失效原因之一(个人笔记非教程)

@Override protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException,ShopException { response.setHeader("Content-Type", "application/json;charset=UTF-8"); ..

2021-07-27 22:52:31 235

原创 springboot参数校验(个人笔记非教程)

controllerpublic ApiRestResponse addCategory(@Valid @RequestBody CategpryReqDataVoCategpryReqDataVopublic class CategpryReqDataVo { @Size(max = 5, min = 2,message = "分类名称字数要在2到5个之间") @NotBlank private String name; @NotNull @M

2021-07-22 21:58:51 106 1

原创 idea添加本地jar到lib(个人笔记非教程)

2021-07-11 09:33:04 424

原创 (个人笔记,非教程)小程序page背景渐变时,颜色出现repeat现象时 解决

设置 background-size: 100% 4000rpx;设置背景色的高度超过视图

2021-06-28 18:09:47 270

原创 canvas demo(个人笔记,非教程)

https://github.com/whxaxes/canvas-test/tree/gh-pageshttps://github.com/bxm0927/canvas-special

2021-05-11 15:12:02 174

原创 Spring项目不能使用@PostMapping,@GetMapping注解

更改版本号 4.3以前的没有这个功能 4.3以后的版本才推出. <org.springframework.version>4.3.9.RELEASE</org.springframework.version>

2021-05-09 14:50:11 2471

原创 mybatis mapper.xml文件处理create_time 和 update_time(个人笔记,非教程)

插入新数据时,可以直接使用 now() 函数赋值 <insert id="insert" parameterType="com.mmall.pojo.Cart"> insert into mmall_cart (id, user_id, product_id, quantity, checked, create_time, update_time) values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=I

2021-05-04 09:09:07 1676

原创 spring boot开发配置(个人笔记,非教程)

1.创建项目使用国内源进行初始化: https://start.aliyun.com2.配置 <dependency> //mybatis <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3

2021-05-03 17:48:36 168 1

原创 创建spring boot使用国内地址(个人笔记,非教程)

https://start.aliyun.com

2021-05-03 17:10:14 1128

原创 idea常用插件(个人笔记,非教程)

Free Mybatis pluginLombokSpring AssistantMaven Helper

2021-05-01 15:20:19 93

原创 spring-boot连接mysql(个人笔记,非教程)

pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>or

2021-04-24 10:30:33 108

原创 nuxt个人笔记非教程

plugin此文件类似与单页项目中的main.js文件夹的js文件,默认导出函数的第一个参数为 context可以直接import vue并操作无需到处函数 eg:import Vue from 'vue'Vue.prototype.$message = Message可以在ctx中使用$appModelimport AppModel from '@/model/App.js'export default function ({ $axios }, inject) { co

2021-04-22 09:40:52 71

原创 elementui轮播图宽度修改(个人笔记非教程)

需要获取到elementUI的carouselItem源码,然后修改calcCardTranslate(index, activeIndex) { const parentWidth = this.$parent.$el.offsetWidth this.parentWidth = parentWidth if (index === activeIndex) { return 'calc(50vw -

2021-04-22 09:30:29 2400

原创 ESLint: Failed to load config “standard“ to extend from.(个人笔记,非教程)

yarn add eslint-plugin-promise eslint-plugin-node eslint-plugin-import eslint-plugin-standard eslint-config-standard -D

2021-04-16 17:35:30 12601

原创 flutter配置gradle(个人笔记,非教程)

配置镜像项目目录 android/build.gradle maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }下载这个文件中这个路径的地址中的文件,然后把文件的在本地的地址替换

2021-04-11 13:55:46 5018

原创 spring boot配置热更新(个人笔记,非教程)

pom.xml<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optiona

2021-03-28 13:59:36 177

原创 配置react-native-config(安卓)(个人笔记非教程)

include ':react-native-config'project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android')apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"

2021-03-07 09:50:52 392

原创 vscode vue模板中,变量提示(个人笔记非教程)

2020-12-18 19:04:30 1339 1

原创 mybatis分页查询(个人笔记,非教程)

import com.baomidou.mybatisplus.core.metadata.IPage;import com.baomidou.mybatisplus.extension.plugins.pagination.Page; IPage<Test> pageInfo = new Page<Test>(pages,limit); QueryWrapper qw = new QueryWrapper(); IPage<Test> data = tes

2020-12-17 13:51:52 153

原创 ssm commons-fileupload文件上传(个人笔记,非教程)

依赖<dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.4</version> </dependency>context.xml<bean id="mul

2020-12-17 08:36:24 217

原创 java常用工具包(个人笔记,非教程)

kaptcha 验证码生成commons-codec 加密解密commons-fileupload 文件上传

2020-12-16 08:41:51 188

原创 spring task定时任务(个人笔记,非教程)

@Componentpublic class ComputeTask { 每分钟触发一次 @Scheduled(cron = "0 * * * * ?") public void test() { }}

2020-12-16 08:39:00 166

原创 java生成验证码(个人笔记非教程)

maven依赖<dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version> </dependency>context.xml<bean id="kaptcha

2020-12-11 09:18:28 103

原创 ssm配置(个人笔记非教程)

1.依赖spring-webmvc2. 配置DispatcherServlet3. 启用Spring MVC注解模式4. 配置请求与响应字符集5. 配置模板引擎 (可选)6. 配置Json序列化组件

2020-12-09 08:59:37 56

空空如也

空空如也

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

TA关注的人

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