- 博客(7)
- 收藏
- 关注
原创 jenkins实战三之持续集成
一、自动通知jenkins触发任务实战二的演示中,当我们把idea上的代码提交到git中之后, 手动的点击了jenkins中的构建任务,完成镜像的构建和上传注册中心。那么自动化的流程就是让这一步也变成自动的,我们只需要将代码上传到指定分支将会自动化的完成jenkins构建1 自动通知jenkins触发任务主流的git软件都提供了webhooks功能(web钩子), 通俗点说就是git在发生某些事件的时候可以通过POST请求调用我们指定的URL路径,那在这个案例中,我们可以在push事件上指定jenk
2021-01-21 21:32:42
138
原创 jenkins实战二之快速入门
- Root POM: 本次构建要使用的git仓库中的pom文件- Goals and options: 要执行的mvn命令 不用写前面的mvn
2021-01-21 20:19:55
328
原创 日常bug记录三 ==》‘url‘ attribute is not specified and no embedded datasource could be configured.
今天是在练习springBoot父子工程项目的时候报了一个错,内容如下:Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAction:Consider the following: I
2020-12-26 21:44:20
144
原创 日常bug记录二 ==》boolean&Boolean比较
写代码的时候报了一个空指针,辗转查询半天没有找到原因,后面发现是定义变量时候的数据类型写错了报错代码如下:原因:写Boolean类型的包装类比较的是地址值+变量值,而判断条件中的【==】比较的是变量值非地址值,结果前端传数据的时候就比较不到,直接空指针修改方案:方案一:若为Boolean包装类方案二:若为boolean基本数据类型...
2020-12-24 10:28:36
327
原创 SpringBoot学习踩坑http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
今天使用maven打包时,一直报错[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project demo01: Input length = 1 -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven
2020-12-17 20:08:21
602
原创 swagger2使用
1.swagger2的配置1)在父工程pom文件中添加依赖在properties标签中添加<!--swagger2版本支持--><swagger2>2.10.5</swagger2>版本锁定<!--swagger2 版本锁定--><dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2&l
2020-12-14 21:19:51
408
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人