码迷,mamicode.com
首页 >  
搜索关键字:spring test mockmvc junit    ( 80046个结果
Spring Boot 项目脚本(启动、停止、重启、状态)
作者:junbaor 来源:https://segmentfault.com/a/1190000012030747 此脚本用来管理 SpringBoot 项目的进程状态。 有提示功能。 把脚本丢到项目文件夹, 添加执行权限即可。 如果 jenkins 使用这个脚本, 需要在 java -jar 命令 ...
分类:编程语言   时间:2021-06-28 18:13:21    阅读次数:0
SpringBoot拦截器的实现
介绍 在SpringBoot中,拦截器HandlerInterceptor 的功能跟过滤器类似,但是提供更精细的的控制能力:在request被响应之前、request被响应之后、视图渲染之前以及request全部结束之后。我们不能通过拦截器修改request内容,但是可以通过抛出异常(或者返回fal ...
分类:编程语言   时间:2021-06-28 18:01:24    阅读次数:0
springcloud-Eureka注册中心搭建
导入相关的pom依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka-server</artifactId> <version>1.4.6.RELEAS ...
分类:编程语言   时间:2021-06-25 17:16:29    阅读次数:0
gateway 跨域
网上的写法,都有点不太一样。 首先,看一下我的gateway版本 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> <vers ...
分类:其他好文   时间:2021-06-25 17:10:18    阅读次数:0
Spring Bean加载全过程(注解配置)
生产中有很多形式的的配置方式,本文仅分析注解配置。对于其他形式的配置区别主观以为主要在配置文件的解析过程不同,不一一分析了。本文以利用Dubbo框架开发rpc服务端为例详细阐述配置类的解析、数据保存、实例化以及注入到容器中。 通常,涉及到配置参数的框架类,基本都离不开配置的解析及配置的保存;至于配置 ...
分类:编程语言   时间:2021-06-25 16:59:48    阅读次数:0
linux系统中如何删除某些文件或者某一类以外的所有文件
1、创建测试文件: [root@centos7 test]# touch {a..f}.txt [root@centos7 test]# ls a.txt b.txt c.txt d.txt e.txt f.txt 2、删除b.txt文件以外的所有文件 method1: [root@centos7 ...
分类:系统相关   时间:2021-06-25 16:56:49    阅读次数:0
1.快速入门,主键策略以及自动填充
1.快速入门 1.1导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <g ...
分类:其他好文   时间:2021-06-25 16:49:17    阅读次数:0
easy excel
/** * 自定义样式 * <p>1. 创建excel对应的实体对象 参照{@link DemoData} * <p>2. 创建一个style策略 并注册 * <p>3. 直接写即可 */ @Test public void styleWrite() { String fileName = Test ...
分类:其他好文   时间:2021-06-25 16:46:34    阅读次数:0
clickhouse使用问题记录
mysql引擎 create table t_mysql ( id Int32, name String, ) engine = MySQL('127.0.0.1:3306', 'test', 't', 'root', '123456'); mysql进行ddl: alter table t mod ...
分类:其他好文   时间:2021-06-25 16:44:37    阅读次数:0
SpringBoot配置数据源
springboot配置数据源 ? Spring Framework 为 SQL 数据库提供了广泛的支持。从直接使用 JdbcTemplate 进行 JDBC 访问到完全的对象关系映射(object relational mapping)技术,比如 Hibernate。Spring Data 提供了 ...
分类:编程语言   时间:2021-06-25 16:44:17    阅读次数:0
80046条   上一页 1 ... 9 10 11 12 13 ... 8005 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!