网站首页 站内搜索

搜索结果

查询Tags标签: springframework,共有 871条记录
  • spring-gateway基于数据库 + nacos 的动态路由

    动态路由的实现方式多种多样,研究一下基于数据方式的动态路由。1. 创建项目,并pom.xml文件引入如下依赖 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="…

    2022/7/17 2:15:17 人评论 次浏览
  • @ConditionalOnMissingBean 如何实现覆盖第三方组件中的 Bean

    1. 自定义一个简单 spring-boot 组件 创建 olive-starter 项目 对应的 pom.xml文件如下 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apa…

    2022/7/16 23:48:54 人评论 次浏览
  • SSM框架整合

    SSM项目整合由于SpringMVC是Spring框架中的一个模块,所以SSM框架整合只需要进行Spring与Mybatis和SpringMVC和Mybatis之间的整合1、导入依赖<dependencies> <!-- 单元测试整合--><dependency><groupId>junit</groupId><artifactId&g…

    2022/7/15 23:24:44 人评论 次浏览
  • 解决关于程序包org.springframework.XX不存在的问题

    出现的问题如图所示 解决方法 出现的问题可能项目导进来未设置maven运行时的jdk,重新运行后,OK问题已解决

    2022/7/14 14:56:05 人评论 次浏览
  • springboot文件下载

    1.创建springboot项目,结构如下:2. 代码部分import org.apache.tomcat.util.http.fileupload.IOUtils; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;import javax.servlet.ServletOutputStream;…

    2022/7/13 23:24:33 人评论 次浏览
  • 1.SpringSecurity 基本原理

    1.SpringSecurity 本质是一个过滤器链: 从启动是可以获取到过滤器链: org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter org.springframework.security.web.context.SecurityContextPersistenceFilter org.springframework.se…

    2022/7/13 6:20:16 人评论 次浏览
  • SpringBoot

    SpringBoot B站:狂神说Java-->https://www.bilibili.com/video/BV1PE411i7CV?p=1微服务阶段javase: OOP mysql:持久化 html+css+js+jquery+框架 javaweb:可以独立开发MVC3 层架构的网站了,比较原始 ssm框架:简化了我们的开发流程,配置也开始较为复杂; 打包方式:…

    2022/7/11 6:20:52 人评论 次浏览
  • Feign远程调用

    介绍 Feign是一个声明式的http客户端,官方地址:https://github.com/OpenFeign/feign 其作用就是帮助我们优雅的实现http请求的发送,解决RestTemplate访问地址暴露的问题。 Feign使用步骤 1).引入依赖 我们在order-service服务的pom文件中引入feign的依赖: <depende…

    2022/7/9 6:22:41 人评论 次浏览
  • 使用redis实现分布式锁

    一、使用StringRedisTemplate实现分布式锁package com.example.baidu.redis;import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.StringRedisTempl…

    2022/7/5 2:22:31 人评论 次浏览
  • 07-SpringBoot的自动装配应用案例练习

    七、SpringBoot的自动装配应用案例练习(结合Redis) 7.1、案例描述需求自定义redis-starter。要求当导入redis坐标时,SpringBoot自动创建Jedis的Bean7.2、案例实现 7.2.1、实现步骤1、创建工程导入依赖<?xml version="1.0" encoding="UTF-8"?&…

    2022/7/4 6:20:16 人评论 次浏览
  • SpringBoot01Hello

    依赖: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.7.RELEASE</version> </parent> <dependencies> <!-- web启动jar --> &…

    2022/6/30 23:22:23 人评论 次浏览
  • windows安装redis服务端和客户端,springboot使用

    一、Redis介绍 Redis是当前比较热门的NOSQL系统之一,它是一个开源的使用ANSI c语言编写的key-value存储系统(区别于MySQL的二维表格的形式存储。)。和Memcache类似,但很大程度补偿了Memcache的不足。和Memcache一样,Redis数据都是缓存在计算机内存中,不同的是,Memc…

    2022/6/30 2:49:30 人评论 次浏览
  • 使用JavaConfig实现配置

    使用JavaConfig实现配置 概述 本文主要讲述使用Config配置文件来代替xml配置文件,Config配置文件和xml配置文件功能一模一样,xml配置可能相对繁琐,每次要去官网拷贝外面的一层 先看代码 背景:一人一猫一狗 猫类 package com.kuangstudy.pojo;import org.springframewo…

    2022/6/30 1:51:23 人评论 次浏览
  • ssm整合 (spring + springmvc + mybaits) 配置文件

    db.properties jdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://127.0.0.1:3306/ssmbuild?useSSL=false&useUnicode=true&characterEncoding=utf8jdbc.username=rootjdbc.password=rootmybatis-config.xml<?xml version="1.0" encoding=&…

    2022/6/29 23:21:45 人评论 次浏览
  • extends WebMvcConfigurationSupport 和 implements WebMvcConfigurer之间的区别

    事情是这样的,springboot项目中原有一个类是 implements WebMvcConfigurer这样的/*************************************************************************** Copyright©2004-2016 浙江盘石信息技术股份有限公司* All rights reserved.** 项目名称:互金网络平…

    2022/6/29 6:20:12 人评论 次浏览
扫一扫关注最新编程教程