随笔分类 - SpringBoot
摘要:一、前言 二、 三、参考资料 1. "如何将Spring Boot项目打包部署到外部Tomcat" 2. "SpringBoot 项目如何在tomcat容器中运行"
阅读全文
摘要:一、前言 三、参考资料 1. "Spring Boot配置文件放在jar外部"
阅读全文
摘要:一、前言 二、配置方式 在 META INF/spring.factories 中声明主配置类,并开启bean的扫描 三、参考资料 1. "Understanding auto configured beans 官方文档"
阅读全文
摘要:一、入口类和@SpringBootApplication SpringBoot项目通常有一个名为*Application的入口类,入口方法为此类的main方法。 1. @SpringBootApplication @SpringBootApplication注解是一个组合注解,主要组合了一下注解:
阅读全文
摘要:一、前言 使用mockito测试框架可以方便的进行web测试 二、用法实例 package com.ray.weixin.qy.controller; import com.ray.weixin.qy.ApplicationTests; import lombok.extern.slf4j.Slf4
阅读全文
摘要:二、参考资料 1.Spring Boot中使用Swagger2构建强大的RESTful API文档 2.
阅读全文
摘要:一、pom.xml配置 增加以下pom.xml配置 二、添加一个remote 在工具栏中的Run -> Edit Configurations... -> Remote, 新建一个启动项,什么都不用改,但为了方便名字随便起一个你能区分开的就行, 我这里叫debug了 三、以debug方式启动 1.执
阅读全文
摘要:二、参考资料 1.Spring Boot 系列(六)web开发-Spring Boot 热部署
阅读全文
摘要:一、异常信息 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gsonBuilder' defined in class path resource [org/spring
阅读全文
摘要:一、方法一 1、说明 用Maven打到本地仓库,然后直接引入 2、参考资料 Springboot 打Jar包,Maven完美解决本地Jar包自动打入Springboot Jar包中 3、执行maven打包命令进行打包 4.依赖jar包 二、方法二 二、参考资料 1.Spring Boot引用本地ja
阅读全文
摘要:二、参考资料 1.Spring boot 自定义端口 2.Spring Boot的Web配置(九):Tomcat配置和Tomcat替换
阅读全文
摘要:一、精选 1.Spring Boot文档 二、参考资料 1.springboot-learning-example 2.Spring boot 那些事 3.Spring Boot干货系列 4.Spring Boot Rock'n'Roll 5.Spring Boot系列文章
阅读全文
摘要:二、参考资料 1.正确、安全地停止SpringBoot应用服务
阅读全文
摘要:一、现象 上一个异常解决之后,出现了这个异常: 二、解决方法 三、参考资料
阅读全文
摘要:一、异常现象 spingbott项目在eclipse中执行maven命令:spring-boot:run, 出现异常: No plugin found for prefix 'spring-boto' in the current project 二、解决方法 参考: No plugin found
阅读全文