![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springBoot
文章平均质量分 64
zghgchao
java开发/大数据/云计算
展开
-
Unsatisfied dependency expressed through field ‘externalConfigurations‘...报错信息
Unsatisfied dependency expressed through field ‘externalConfigurations’…报错信息报错日志org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration': Unsati原创 2020-11-30 14:24:47 · 1937 阅读 · 0 评论 -
微服务面试
1.什么是springboot 用来简化spring应用的初始搭建以及开发过程 使用特定的方式来进行配置(properties或yml文件) 创建独立的spring引用程序 main方法运行 嵌入的Tomcat 无需部署war文件 简化maven配置 自动配置sp...原创 2018-06-27 22:14:01 · 2631 阅读 · 0 评论 -
Springboot使用FastJson后,POI导出excel乱码
在项目中使用了 fastjson,用作驼峰和下划线的互转,但在引入POI导出excel时,发现导出excel文件不报错,也没抛出异常,但excel打开却乱码,于是各种调试,各种找。。。;最后再把fastjson的配置注释掉发现excel没有乱码了,于是网上查了一下,原来是配置fastjson时重写了HttpMessageConverters,但MediaType没有设置成 MediaType.AP...原创 2018-08-10 23:41:51 · 3559 阅读 · 0 评论 -
SpringBoot + Vue + nginx项目部署
1.后端项目部署:(1)Java项目打包上传到 服务器,开启服务java -jar *****.jar --server.port=8080(2)vue项目打包,拷贝dist下的static和index.html到/usr/local/nginx/html目录下(3)安装Nginx,参考https://blog.csdn.net/qq_22027637/article/detai...原创 2018-08-17 15:05:37 · 6421 阅读 · 0 评论 -
SpringBoot RestTemplate进行POST请求,from-data传参
1.cinfig配置类package com.haoqian.crm.kscrm.configration;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.h...原创 2018-11-16 14:09:38 · 22393 阅读 · 3 评论 -
SpringBoot2.x连接自定义前缀的redis
因为项目需要,需通过统一配置中心读取redis的配置信息,而springBoot默认读取的配置信息的前缀为 spring.redis。步骤如下:1.需要读取的配置文件 redis.propertiesredis.host=192.168.1.10redis.port=63792.程序启动读取配置文件SpringBoot启动类添加注解 @PropertySource(va...原创 2018-11-29 12:55:42 · 2440 阅读 · 1 评论 -
SpringBoot.2x通过统一配置中心读取mysql.properties的配置
SpringBoot默认通过 spring.datasource 前缀去自动化配置mysql数据库的连接,但现在需要通过配置中心的配置实现数据库的连接。步骤如下:1.配置中心mysql.properties如下mysql.crm.jdbc.driver-class-name=com.mysql.jdbc.Drivermysql.crm.jdbc.username=rootmysql....原创 2018-11-29 13:03:56 · 2787 阅读 · 1 评论 -
springBoot2+Mybatis+log4j2日志配置
采用springBoot2+Mybatis+log4j2将日志信息分为info、error、sql三个文件夹打印出来,日志结构如图1.POM文件依赖<dependencies> <dependency> <groupId>org.springframework.boot</groupId> ...原创 2019-06-17 14:59:04 · 7936 阅读 · 2 评论