码迷,mamicode.com
首页 >  
搜索关键字:spring boot 的注解    ( 53117个结果
springboot2.x-@ConfigurationProperties配置绑定
我们通常有这样的需求:把一些固有的配置放到xxxx.properties,然后想将xxxx.properties的value映射到实体类中,以前的做法大概如下: 但到springboot这就完全不需要这样做了,只需要使用提供的注解即可完成,有两种方式可以实现: 1. @ConfigurationPr ...
分类:编程语言   时间:2021-04-24 11:50:50    阅读次数:0
Spring Boot下使用JPA报错:'hibernate.dialect' not set的解决办法
Spring Boot 下使用JPA,报org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set错误,异常信息如下: Caused ...
分类:编程语言   时间:2021-04-23 12:28:00    阅读次数:0
Spring Cloud Alibaba(4)---Nacos(注册中心)
#Nacos(注册中心) 有关Spring Cloud Alibaba之前写过三篇文章。 Spring Cloud Alibaba(1) 入门篇 Spring Cloud Alibaba(2) RestTemplate微服务项目 Spring Cloud Alibaba(3) Nacos概述 有关注 ...
分类:编程语言   时间:2021-04-23 12:21:14    阅读次数:0
Spring(11) - Introductions进行类扩展方法
Introductions(引用),在 Aspect 中称为类型间的声明,使切面能够声明被通知的对象(拦截的对象)实现给定的接口,并提供该接口的实现。 简单点说可以将一个类的实现方法复制到未实现的类中。 通过 @DeclareParents 注解进行声明,声明在一个父类型的属性上(比如接口),其中注 ...
分类:编程语言   时间:2021-04-23 12:12:26    阅读次数:0
MybatisPlus
官网快速开始-: https://mp.baomidou.com/guide/quick-start.html#%E5%BC%80%E5%A7%8B%E4%BD%BF%E7%94%A8 传统方式 pojo-dao(连接mybatis,配置mapper.xml文件)- service - contro ...
分类:其他好文   时间:2021-04-23 11:56:15    阅读次数:0
Spring三级缓存
Spring解决循环依赖的问题 // 业务开发中经常这么写,field注入、setter注入都OK,但是构造器注入会报错BeanCurrentlyInCreationException // 有这种循环依赖问题存在Spring却依然能够正常启动工作,为什么?Spring帮我们搞定了:三级缓存 @Se ...
分类:编程语言   时间:2021-04-22 16:18:40    阅读次数:0
Spring注解大全
Spring注解 @Controller(表示SpringMVC的Controller)、@RestController(Rest风格控制器,还可以若要返回JSON不需要@ResponseBody了)、@Service(业务服务层)、@Autowired(如果允许null值,required=fal ...
分类:编程语言   时间:2021-04-22 16:17:58    阅读次数:0
远程桌面连接
将设备连接网线, 登录路由器,查看设备IP 打开Xshell进行连接 用户名:root 密码:fa 连接成功 执行 apt-get install xrdp apt-get install vnc4server tightvncserver reboot 启动xrdp #/etc/init.d/xr ...
分类:其他好文   时间:2021-04-22 16:12:52    阅读次数:0
RabbitMQ入门(二)-- Springboot实现消息推送和消费
RabbitMQ主要实现消息推送和消费 用springboot实现消息推送 1. 新建springboot项目 通过idea,创建一个springboot默认项目,在pom.xml中添加如下依赖。 <dependency> <groupId>org.springframework.boot</gro ...
分类:编程语言   时间:2021-04-22 16:11:55    阅读次数:0
Spring5框架概述
概述 1、Spring 是轻量级的开源的 JavaEE 框架2、 Spring 可以解决企业应用开发的复杂性3、Spring 有两个核心部分:IOC 和 Aop(1)IOC:控制反转,把创建对象过程交给 Spring 进行管理(2)Aop:面向切面,不修改源代码进行功能增强4、Spring 特点(1 ...
分类:编程语言   时间:2021-04-22 15:54:53    阅读次数:0
53117条   上一页 1 ... 34 35 36 37 38 ... 5312 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!