码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
SpringBoot 中集成 Swageer2
添加Maven依赖 添加配置类 注解使用 @Api:用在请求类上,说明该类的作用 tags:说明该类的作用,可以在UI界面上看到的内容 value:该参数没什么意义,在UI界面上也看到,所以不需要配置 @ApiOperation:用在请求的方法上,说明方法的用途、作用 value:说明方法的用途、作 ...
分类:编程语言   时间:2019-04-02 00:13:07    阅读次数:501
springboot项目新功能开发
在原有的springboot项目上,复制了一个,然后将其中的src下的所有java文件都删除,gradle下把中间件都删除,直流springframework的,重新启动,发现 错误Failed to start component [Connector[HTTP/1.1-8989]] 说明8989 ...
分类:编程语言   时间:2019-04-01 14:18:44    阅读次数:131
第十一章 SpringBoot事物管理器
一、springboot整合事物管理 springboot默认集成事物,只主要在方法上加上@Transactional即可 二、SpringBoot分布式事物管理 使用springboot+jta+atomikos 分布式事物管理 1、pom文件 2、application.properties信息 ...
分类:编程语言   时间:2019-03-31 16:49:45    阅读次数:83
MyBatis驼峰命名方法问题解决方法
springboot链接数据库importorg.apache.ibatis.session.Configuration;importorg.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;importorg.springframework.context.annotation.Bean;/***@authorliwen406*@
分类:其他好文   时间:2019-03-31 15:30:52    阅读次数:265
学习小片段——springboot 错误处理
一:先看看springboot默认的错误处理机制 springboot默认会判断是否是浏览器(http请求头Accept是否含有 text/html)来选择返回html错误页面或json错误信息 原因在于BasicErrorController 控制器中的这两个映射 errorHtml响应来自浏览器 ...
分类:编程语言   时间:2019-03-31 13:42:29    阅读次数:229
springboot开发流程
public class User { private int id; private String username; private String password; private int age;}/*持久层接口*/public interface UserMapper { public v ...
分类:编程语言   时间:2019-03-31 12:21:11    阅读次数:170
SpringBoot------集成MyBatis报错
在spring boot启动main方法所在的类中加入 @MapperScan注入后报错: Invalid default: public abstract java.lang.Class org.mybatis.spring.annotation.MapperScan.factoryBean() ...
分类:编程语言   时间:2019-03-31 09:59:07    阅读次数:152
org.springframework.cache.interceptor.SimpleKey cannot be cast to java.lang.String
springboot整合redis时,使用@Cacheable注解,如果方法的key参数为空,就会报org.springframework.cache.interceptor.SimpleKey cannot be cast to java.lang.String的错误 ...
分类:编程语言   时间:2019-03-30 22:48:20    阅读次数:684
springboot profile 日志配置
springboot profile活动配置 logback日志文件配置 ...
分类:编程语言   时间:2019-03-30 20:02:00    阅读次数:210
springboot项目部署
如何将springboot项目打包成war包发布到tomcat上 参考:https://www.cnblogs.com/qianzf/p/8405479.html 一、修改打包的方式:在pom.xml里设置 二、移除嵌入式tomcat插件 在pom.xml里找到spring-boot-starter ...
分类:编程语言   时间:2019-03-30 18:45:17    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!