摘要:
# 查看日志 docker logs -f -t --since="2017-05-31" --tail=10 test-app #启动 service docker start #停止 service docker stop #停止指定容器 docker stop 7dafc4d13d07 462 阅读全文
摘要:
1. 项目介绍 spring boot样例github项目。 大家可以访问:https://github.com/mudfish/springbootdemo 2. jenkins中新建maven任务 2.1 配置日志滚动策略 2.2 配置git项目路径 2.3 配置构建后的操作 2.4 开始构建 阅读全文
摘要:
问题描述 问题分析 在项目的配置中配置了使用本地maven 配置。 解决方案 改为系统默认配置即可。修改后如图:点Build 右边高级按钮 阅读全文
摘要:
1.登录github,打开Settings 2.点击Developer settings 3.点击Personal access tokens-->Generate new token 4.勾选指定选项,生成秘钥 5.打开jenkins--系统管理 6.找到Github选项,选择Add 7.填入生成 阅读全文
摘要:
1.问题说明 今天配置spring boot多数据源,同时用到了oracle和postgresql,结果配置完毕后启动报这个错。 2.原因分析 忘记添加postgresql驱动了!!! 3.解决方案 pom中添加postgresql驱动。例如我的项目中: <dependency> <groupId> 阅读全文
摘要:
1.问题说明 今天在sping boot中配置多数据源,用到了oracle和postgresql两种数据库。 oracle驱动版本是ojdbc14,启动以后调试程序直接报错了,就是本文题目中的错。 查了一圈: 2.原因分析 ojdbc14的版本低了。 classes12.jar - 适配 Java 阅读全文
摘要:
1.在主类上添加EnableScheduling注解 package com.laoxu.gamedog; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure 阅读全文
摘要:
1.修改配置文件 vim /usr/local/nginx/conf/nginx.conf 添加一个server节点: server { listen 81; server_name localhost; access_log logs/test.log; location / { index in 阅读全文
摘要:
1.查看现有数据库编码 show variables like "%char%"; 2.修改mysql配置文件:/etc/my.cnf(以实际安装环境为准) 在[client]字段下添加: default-character-set = utf8 在[mysqld]字段下添加: character- 阅读全文
问题处理:java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
摘要:
问题说明 今天跑spring boot项目,在查看列表数据时后台抛异常了,一看是这玩意: 问题原因 “0000-00-00 00:00:00”在mysql中是作为一个特殊值存在的但 java.sql.Date 将其视为 不合法的值 格式不正确! 解决方案 需要在jdbc url中增加针对此种0日期数 阅读全文