skywalking组件alibaba spring

Spring Boot返回Json数据及数据封装

1.1 简介在项目开发中,接口与接口之间,前后端之间数据的传输都使用Json 格式,在Spring Boot中,接口返回 Json格式的数据很简单,在 Controller 中使用@RestController注解即可返回 Json格式的数据,@RestController也是 Spring Boo ......
数据 Spring Boot Json

Spring Boot使用slf4j进行日志记录

1.1 简介在开发中,我们经常使用 System.out.println()来打印一些信息,但是这样不好,因为大量的使用 System.out 会增加资源的消耗。我们实际项目中使用的是 slf4j的logback 来输出日志,效率挺高的,Spring Boot提供了一套日志系统,logback是最优 ......
Spring slf4j 日志 Boot slf4

Spring Boot中的全局异常处理

1.1 Spring Boot中的全局异常处理在项目开发过程中,不管是对底层数据库的操作过程,还是业务层的处理过程,还是控制层的处理过程,都不可避免会遇到各种可预知的、不可预知的异常需要处理。如果对每个过程都单独作异常处理,那系统的代码耦合度会变得很高,此外,开发工作量也会加大而且不好统一,这也增加 ......
全局 Spring Boot

记spring-security升级,引发的redis反序列化不一致问题

问题解决参考文章如下: https://my.oschina.net/klblog/blog/5559133 https://blog.csdn.net/qq_37421368/article/details/124850449 问题复现 由于一些原因,登录的token由旧版本的微服务存入的redi ......

spring注解整合Junit

import com.hw.config.SpringConfig; import com.hw.domain.User; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import ......
注解 spring Junit

Spring注解系列——@PropertySource

在Spring框架中@PropertySource注解是非常常用的一个注解,其主要作用是将外部化配置解析成key-value键值对"存入"Spring容器的Environment环境中,以便在Spring应用中可以通过@Value或者占位符${key}的形式来使用这些配置。 使用案列 // @Pro ......
注解 PropertySource Spring

uniapp小程序/deep/修改全局组件样式不生效问题

1.uniapp小程序/deep/修改全局组件样式不生效问题 2. 用于处理小程序::v-deep 组件样式无效问题 全局把/deep/修改成 ::v-deep 并且在uniapp的全局方法里面加上下面代码 options: { styleIsolation: 'shared' }, 3. /dee ......
全局 样式 组件 程序 uniapp

支持多种文件(docx、excel、pdf)预览的vue组件库,支持vue2/3。

原文链接 https://github.com/501351981/vue-office 功能特色 一站式:提供docx、pdf、excel多种文档的在线预览方案,有它就够了 简单:只需提供文档的src(网络地址)即可完成文档预览 体验好:选择每个文档的最佳预览方案,保证用户体验和性能都达到最佳状态 ......
组件 vue 多种 文件 excel

FastCFS:FastDir-server、FastStore-server等服务器组件中的【[server-$id]】的多网卡多ip、单网卡不同port的精细配置

如题! 之所以专门记录在此,是因为,作者官方的相关文档语焉不详、或无法轻易查找的到资料,让无经验的人不知如何配置(注:yuqing莫怪!) 其实,这些配置项,可以通过仔细研读程序启动的日志信息或提示获取到。 当然,如果你有功底,完全可以通过阅读源码获取到。 此处以FastDir-server的相关c ......

Spring 源码解析 --Bean 的初始化流程

--Spring 原理架构图 -- 容器刷新 Bean 初始化 --Bean生命周期流程 ......
源码 流程 Spring Bean

使用vue2从零开始搭建自己的组件库(完整版)

前言 在前端开发中,除了常用的UI组件库以外,我们还会涉及到基于公司业务,需要定制化开发一些业务组件,还有随着项目的增多,开发人员的增多,为了提高工作效率,我们就需要统一管理好已开发好的业务组件。这时候我们就需要搭建自己的组件库,因为涉及到一些公司的业务,我们只能发布到私服的npm上。下面几点是我们 ......
整版 组件 vue2 vue

Spring 使用 @Import 的好处是啥?

@Enbale模块驱动的基本原理 在我们平时使用spring的过程中,如果想要加个定时任务的功能,那么就需要加注解@EnableScheduling,如果想使用异步的功能,那就要加@EnableAsync注解,其实这类注解就是属于@Enable模块。 那么@Enable模块到底有什么功能? 模块是指 ......
好处 Spring Import

Spring 源码阅读之标签解析

全局目录.md 引子 1、容器最基本使用.md 系列1 - bean 标签解析: 2、XmlBeanFactory 的类图介绍.md 3、XmlBeanFactory 对xml文件读取.md 4、xml配置文件解析之【默认】命名空间【标签】的解析.md 5、xml配置文件解析之【自定义】命名空间【标 ......
源码 标签 Spring

spring---->Spring事务与ApplicationEventPublisher

Spring事务与ApplicationEventPublisher @Transactional public void handle() { var account = Account.builder() .username("huhx") .password("pass") .build(); ......

spring的bean加载控制

......
spring bean

spring导入第三方资源对应的配置类

import com.alibaba.druid.pool.DruidDataSource; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotatio ......
第三方 spring 资源

spring纯注解驱动制作

......
注解 spring

myBatis与spring集成配置

1.Mybatis与Spring集成配置 基于idea创建archetype-maven-webapp项目。(要求:jdk1.8+web3.0) 1.1.添加依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sour ......
myBatis spring

Angular 复习与进阶系列 – Component 组件 の Angular Component vs Shadow DOM (CSS Isolation)

CSS Global Effect CSS style 是全局影响的. 假设我们有 2 个组件, AppComponent 和 TestComponent app html <div class="container"> <h1>Outside Hello World</h1> <app-test> ......
Component Angular 组件 Isolation Shadow

Spring Cache使用方式——不用默认,使用redis进行缓存

在Spring Boot项目中使用Spring Cache的操作步骤(使用redis缓存技术) 1、导入Maven坐标 spring-boot-starter-data-redis、sping-boot-starter-cache 2、配置application.yml spring: cache: ......
缓存 不用 方式 Spring Cache

Spring Cache使用

package com.itheima.controller; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.itheima.entity.User; import com.i ......
Spring Cache

uni-app 滚动通知组件的实现

uni-app 滚动通知组件的实现 一、实现思路 二、使用scroll-view 组件实现 <template> <view class="notice"> <scroll-view class="notice-scroll" :scroll-y="true" :scroll-with-animat ......
组件 uni-app uni app

2023.04.06 - vue组件中动态指定监听的值

业务场景:高拍仪给出的视频信息API回调里会不断返回图像数据。因为有主副摄像图像信息,并且两个图像信息会二选一展示在DOM容器里。所以就是二对一的关系。 // 主摄像数据 let priPic:string = ''; // 副摄像数据 let subPic:string = ''; // 展示在容 ......
组件 动态 2023 vue 04

Angular 复习与进阶系列 – Component 组件 の Pipe

介绍 Pipe 类似于 Template Syntax, 它的用途是 transform value for display. 参考: Docs – Understanding Pipes DatePipe 一个简单的例子, 我有一个 JavaScript 的 Date value, 我要 disp ......
组件 Component Angular Pipe

Angular 复习与进阶系列 – Component 组件 の Template Binding Syntax

前言 这篇介绍一些基本的 Angular 模板语法. 参考 Docs – Understanding binding Render, Event Listening and DOM Manipulation Angular 作为一个 MVVM 框架, 有两个任务是一定要处理好的 1. First R ......
组件 Component Template Angular Binding

spring整合mybatis

效果 在不注入sqlSession的情况下 第一种方法:再bean实例化的时候,可以重写BeanDefinitionRegistryPostProcessor,在这里修改beanDefinition,将factoryBean注入到beanClassName,然后注入构造方法,其参数为maper.cl ......
mybatis spring