![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
洪武
自律给我自由
展开
-
spring boot 入门 使用spring.profiles.active来分区配置
很多时候,我们项目在开发环境和生成环境的环境配置是不一样的,例如,数据库配置,在开发的时候,我们一般用测试数据库,而在生产环境的时候,我们是用正式的数据,这时候,我们可以利用profile在不同的环境下配置用不同的配置文件或者不同的配置 spring boot允许你通过命名约定按照一定的格式(application-{profile}.properties)来定义多个配置文件,然后通过在a...原创 2019-02-15 14:36:08 · 284 阅读 · 0 评论 -
Spring Boot:内置tomcat启动和外部tomcat部署总结
springboot的web项目的启动主要分为: 一.使用内置tomcat启动 启动方式: 1、IDEA中main函数启动 2、mvn springboot-run 命令 3、java -jar XXX.jar 配置内置tomcat属性: 关于Tomcat的属性都在org.springframework.boot.autoconfigure.web.ServerProperties配...转载 2019-02-19 14:44:00 · 785 阅读 · 0 评论 -
Springboot内置tomcat优化说明
修改springboot内置tomcat EmbeddedServletContainerCustomizer接口中的抽象方法有三个内置容器 AbstractEmbeddedServletContainerFactory --JettyEmbeddedServletContainerFactory,TomcatEmbeddedServletContainerFactory,UndertowE...转载 2019-02-19 14:47:43 · 2118 阅读 · 0 评论 -
sprinboot 上传文件
1.org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (419147426) exceeds the configured maximum (10485760) springboot上传文件 ...原创 2019-02-19 16:36:16 · 124 阅读 · 0 评论