Stella981 Stella981
3年前
Spring AOP @Aspect 基本用法
Spring使用的AOP注解分为三个层次:前提条件是在xml中放开了<aop:aspectjautoproxyproxytargetclass"true"/<!开启切面编程功能1、@Aspect放在类头上,把这个类作为一个切面。2、@Pointcut放在方法头上,定义一个可被别的方法引用的切入点
Stella981 Stella981
3年前
Spring Data Jpa最佳实践
前言SpringDataJpa框架的目标是显著减少实现各种持久性存储的数据访问层所需的样板代码量。SpringDataJpa存储库抽象中的中央接口是Repository。它需要领域实体类以及领域实体ID类型作为类型参数来进行管理。该接口主要用作标记接口,以捕获要使用的类型并帮助您发现扩展该接口的接口。CrudRepository、JpaRe
Stella981 Stella981
3年前
Spring Boot的TestRestTemplate使用
文章目录添加maven依赖(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fsuperfjj%2Farticle%2Fdetails%2F104219960%23maven_7)TestRestTemplateVSRes
Stella981 Stella981
3年前
Spring Boot中的Properties
文章目录简介(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fsuperfjj%2Farticle%2Fdetails%2F104243859%23_3)使用注解注册一个Properties文件(https://www.o
Stella981 Stella981
3年前
Spring Task 定时任务
推荐使用基于配置XML的形式!!!     //首先要定义schema 空间     <?xml version"1.0" encoding"UTF8"?          <beans xmlns"http://www.springframework.org/schema/beans"         
Stella981 Stella981
3年前
Spring Cloud Alibaba系列教程
点击上方 IT牧场 ,选择 置顶或者星标您的关注意义重大!SpringCloudAlibaba系列教程01Nacos安装与启停(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzI4O
Stella981 Stella981
3年前
Spring Boot WebFlux整合mongoDB
引入maven文件<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringbootstarter</artifactId</dependency<dependen
Stella981 Stella981
3年前
Spring Boot中的测试
文章目录简介(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fsuperfjj%2Farticle%2Fdetails%2F104206183%23_3)添加maven依赖(https://www.oschina.net/
Stella981 Stella981
3年前
Spring Boot 学习(一)感慨
老是在传统行业混,面试了几家公司。我这种独立开发者,(之前写全栈,和面试官争吵了一会儿啊,hah观点不同,会java,数据库,前端,android的简直不被看好。主要是不太精通)面试劣势。都是问一些集群,并发,大数据,分布式的东西,看来普通的java程序员混不下去了。hah。所以也学习一下吧~在综合考虑对spring也是比较熟悉的情况下,想学习spr
Easter79 Easter79
3年前
Spring事务的传播行为
\\\\\\\\\\\\\\\\\\\\sample\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ServiceA{      /\\      \事务属性配置为PROPAGATION\_REQUIRED