码迷,mamicode.com
首页 >  
搜索关键字:springboot web开发-cors支持    ( 9666个结果
SpringBoot框架:按照日期日志切割
一、依赖包导入 1、导入logback依赖包: <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</version></dependency> ...
分类:编程语言   时间:2021-03-18 14:43:29    阅读次数:0
springboot项目打包后证书文件不可用
现象 读取不到证书文件 证书文件变大 解决方案 读取不到证书文件 由于是springboot项目,部署时打包成jar启动,无法获取到有效的证书文件地址。解决方案:首次访问时从jar中提取证书文件到当前目录中,代码如下: /** * 获取jar包中证书文件地址 * * @param fileName ...
分类:编程语言   时间:2021-03-18 14:18:03    阅读次数:0
springboot项目中,ehcache报错,需要CacheManager单例的解决办法
在新的springboot项目中,如果在mybatis中使用了ehcache后,再第二次使用ehcache,会提示错误 Another CacheManager with same name 'default' already exists in the same VM. Please provid ...
分类:编程语言   时间:2021-03-18 13:59:58    阅读次数:0
SpringBoot-2.yaml文件
yml文件 基本用法 //传统xml配置: <server> <port>8081<port> </server> //yaml配置: server: prot: 8080 //行内写法 student: {name: qinjiang,age: 3} //数组( List、set )用 - 值表示 ...
分类:编程语言   时间:2021-03-17 14:48:05    阅读次数:0
SpringBoot整合Elasticsearch启动报错处理 nested exception is java.lang.IllegalStateException: availableProcessors is already set to [8], rejecting [8]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class pa ...
分类:编程语言   时间:2021-03-17 14:15:07    阅读次数:0
【记录】【springboot】【kafka】【KafkaStreams】报错Use a different TimestampExtractor to process this data
问题:springboot集成kafka,并由KafkaStreams处理,启动报错 org.apache.kafka.streams.errors.StreamsException: Input record ConsumerRecord(topic = crawler_events, parti ...
分类:编程语言   时间:2021-03-16 14:11:28    阅读次数:0
@Bean 注解全解析
随着 SpringBoot 的流行,基于注解式开发的热潮逐渐覆盖了基于 XML 纯配置的开发,而作为 Spring 中最核心的 bean 当然也能够使用注解的方式进行表示。所以本篇就来详细的讨论一下作为 Spring 中的 Bean 到底都有哪些用法。 @Bean 基础声明 Spring 的 @Be ...
分类:其他好文   时间:2021-03-16 11:57:47    阅读次数:0
springboot静态资源访问探究
在springboot中,我们可以使用以下方式处理静态资源 一、webjars → localhost:8080/webjars/ 获取依赖坐标webjars官网 倒入坐标 查看目录 二、public, static, /** , resources → localhost:8080/ 三、优先级: ...
分类:编程语言   时间:2021-03-15 11:07:45    阅读次数:0
SpringBoot整合Elasticsearch
说明 相关环境: SpringBoot - 2.4.3 Elasticsearch - 7.11.2 这个例子默认已搭建好``springboot、jdbc、mybatis和Swagger(非必需)`等 添加依赖 <!--Elasticsearch相关依赖--> <dependency> <grou ...
分类:编程语言   时间:2021-03-15 10:40:34    阅读次数:0
二、SpringBoot配置文件
一、配置文件 SpringBoot使用一个全局的配置文件,配置文件名是固定的; application.properties application.yml 配置文件的作用:修改SpringBoot自动配置的默认值;SpringBoot在底层都给我们自动配置好; YAML(YAML Ain't Ma ...
分类:编程语言   时间:2021-03-12 13:45:14    阅读次数:0
9666条   上一页 1 ... 21 22 23 24 25 ... 967 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!