码迷,mamicode.com
首页 >  
搜索关键字:Springboot    ( 9666个结果)
springboot SFTP 文件上传下载功能
新增sftp.properies 文件保存 sftp服务器信息 # 协议 sftp.client.protocol=sftp # ip地址 sftp.client.host=改成自己的文件服务器地址 # 端口 sftp.client.port=22 # 用户名 sftp.client.usernam ...
分类:编程语言   时间:2020-05-26 20:35:02    阅读次数:85
SpringBoot整合MongoDB的连接用户名和密码问题
1.这是mongodb没有设置用户名和密码的配置 test是数据名 spring: data: mongodb: uri: mongodb://localhost:27017/test 2.这是mongodb设置了用户名和密码的配置 test是数据名 在mongodb的test数据库创建用户和密码 ...
分类:数据库   时间:2020-05-26 20:29:14    阅读次数:417
项目总结64:分别使用Redisson和Zookeeper分布式锁模拟模拟抢红包业务
项目总结64:分别使用Redisson和Zookeeper分布式锁模拟模拟抢红包业务 业务场景 模拟1000人在10秒内抢10000(或1000)元红包,金额在1-100不等; 使用的框架或软件: 框架或组件:Springboot(基础框架)、Redisson(实现分布式锁)、Zookeeper(实 ...
分类:其他好文   时间:2020-05-26 18:14:11    阅读次数:58
springboot 中CommandLineRunner接口的作用
原文地址:https://www.jianshu.com/p/13980d3ee7fd 先看CommandLineRunner接口的API: import org.springframework.core.annotation.Order; public interface CommandLineR ...
分类:编程语言   时间:2020-05-26 18:07:37    阅读次数:77
SpringBoot中的工程不识别application.yml文件个别问题的解决方案
对于父工程可以使用pom方式,而对于spring单个微服务,pom.xml中的打包方式需要改为jar. pom:打出来可以作为其他项目的maven依赖,在工程A中添加工程B的pom,A就可以使用B中的类。用在父级工程或聚合工程中。用来做jar包的版本控制。 jar包:通常是开发时要引用通用类,打成j ...
分类:移动开发   时间:2020-05-26 18:04:43    阅读次数:198
springboot 使用jdbc
##新建一个springboot项目 打开New Project > 选择Spring initializr 然后next ###需要导入webmvc导入依赖 <!--web依赖--> <dependency> <groupId>org.springframework.boot</groupId> ...
分类:数据库   时间:2020-05-26 15:31:16    阅读次数:58
Springboot+Mybatis
一.官网介绍 在Mybatis官方用法中,介绍了使用Mybatis的过程: 先创建出一个SqlSessionFactory实例 通过SqlSessionFactory实例获取一个SqlSession实例 SqlSession包含了对数据库执行命令的全部方法,此时我们可以通过SqlSession执行映 ...
分类:编程语言   时间:2020-05-26 15:23:21    阅读次数:65
spring-boot整合freemarker 出现404
今天遇到了ftl整合springboot出现的问题 @Controller public class IndexController { @RequestMapping("hello") public String index(){ System.out.println("aaa"); return ...
分类:编程语言   时间:2020-05-26 01:34:17    阅读次数:123
SpringBoot整合Elasticsearch7
SpringBoot连接ElasticSearch有以下种方式, TransportClient,9300端口,在 7.x 中已经被弃用,据说在8.x 中将完全删除 restClient,9200端口, high level client,新推出的连接方式,基于restClient。使用的版本需要保 ...
分类:编程语言   时间:2020-05-25 23:43:56    阅读次数:160
195-如何获取Spring容器中的对象?
1)SpringBoot框架获取容器中的对象 AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class); RestTemplate bean = (RestTem ...
分类:编程语言   时间:2020-05-25 15:55:36    阅读次数:89
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!