Easter79 Easter79
3年前
spring源码导入eclipse
Spring源码导入eclipse环境介绍:Git:Git安装不单独介绍下载源码路径:https://github.com/springprojects/springframework(https://www.oschina.net/action/GoToLink?urlhttps%3
Stella981 Stella981
3年前
Spring Boot 2.3 新特配置文件属性跟踪
背景当我们使用springboot在多环境打包,配置属性在不同环境的值不同,如下:spring:profiles:active:@project.profile@根据maven动态配置profilespring:profiles:devd
Stella981 Stella981
3年前
Spring+spring mvc+redis+mybatis+PageHelper
iBase4J是基于java的开源框架搭建分布式系统架构,使用到的开源框架有:SpringMVC,Mybatis,Redis数据和session缓存,分布式,单点登录,shiro权限管理,dubbo扩展,Rest等等;http://git.oschina.net/iBase4J/iBase4J(http://git.oschina.net/iBase4J
Stella981 Stella981
3年前
Spring Cloud Gateway跨域配置
版本:Greenwich.SR2 1.官网配置https://cloud.spring.io/springcloudstatic/springcloudgateway/2.2.1.RELEASE/reference/html/corsconfiguration(https://www.oschina.net/action/GoTo
Stella981 Stella981
3年前
Spring Boot中Spring data注解的使用
SpringBoot中Springdata注解的使用SringdataJPA为我们提供了很多有用的注解,方便我们来实现各种复杂的功能。本文我们将会从SpringDataAnnotations和SpringDataJPAAnnotations两部分来讲解。SpringDataAnnotations
Stella981 Stella981
3年前
Spring Boot(五):Spring Boot Jpa 的使用
一、SpringBootJpa简介Jpa(JavaPersistenceAPI)是sun官方提出的java持久化规范。它为java开发人员提供了一种对象/关联映射工具,来管理java应用中的关系数据。它的出现主要是为了简化现有的持久化开发工作和整合ORM技术,结束现在hibernate、toplink、jdo等ORM框架各自为营的局面。
Stella981 Stella981
3年前
Shiro中的Remember me设置
1\.在Spring的相关配置文件中加入如下Rememberme管理器配置:<!rememberMe管理器<beanid"rememberMeManager"class"org.apache.shiro.web.mgt.CookieRememberMeManager"
Easter79 Easter79
3年前
Spring如何整合Mybatis,源码不难嘛!
Spring整合Mybtais会进行如下的配置(条条大路通罗马,方式不唯一)。privatestaticfinalStringONE_MAPPER_BASE_PACKAGE"com.XXX.dao.mapper.one";@BeanpublicMapperScannerConfigureroneMapperS
Wesley13 Wesley13
3年前
Spring学习总结(2)——Spring的常用注解
本文汇总了Spring的常用注解,以方便大家查询和使用,具体如下:使用注解之前要开启自动扫描功能其中basepackage为需要扫描的包(含子包)。?(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.jb51.net%2Farticle%2F53586.htm%23)
Stella981 Stella981
3年前
Spring Boot 学习笔记一(Spring Boot 介绍)
一、SpringBoot介绍SpringBoot是由Pivotal团队提供的一种全新的微服务框架,其设计目的是用来简化Spring应用的初始化搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板话的配置。通过这种方式,SpringBoot致力于在蓬勃发展的快速应用开发领域(rap