原创 數據遷移 mysql
相同數據庫遷移 insert into table1 select * from table2 # 完全複製 insert into table1 select distinct * from table2 # 不復制重複紀錄 inse
原创 easyui 清空勾選
$('#objTab').datagrid('clearChecked')=='none';
原创 sql修改時間格式
DATE_FORMAT(fici.apply_time,'%Y-%m-%d %H:%i') AS applyTime,
原创 springboot 靜態 讀取yml常量
@Component public class BaiduOrcConfiguration { private static final Logger logger = LoggerFactory.getLogger(Baidu
原创 解決maven報錯
檢查maven版本是否一致
原创 String字符串轉成Date格式
實例 s[6] 爲字符串 SimpleDateFormat sDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { tDeviceAddOrder
原创 本地項目第一次推送到遠程
初始化本地分支 git init 添加到本地分支 git add . 提交本地分支 git commit -m "" 綁定到遠程分支 git remote add origin romote-address 推送到遠程分支: gi
原创 git 在分支上創建分支
命令 1.$ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clea
原创 sql查詢默認值和null做關聯
遇到sql查詢,如果有值就顯示,如果是空則顯示默認值,關聯表,關聯字段出現null,解決方法加ifnull 例子: SELECT fici.id, fici.vin, fici.car_series AS carS
原创 Redis 搭建集羣步驟
1 下載redis包 wget http://download.redis.io/releases/redis-5.0.5.tar.gz tar -zxvf redis-5.0.5 2將redis 移入到/usr/local/redi
原创 spring 常用註解解釋 持續更新
@Repository : 數據訪問組件 也就是DAO層 用於操作數據庫 @Autowired : 可以對類成員變量,方法以及構造函數進行標註,完成自動壯派的工作,通過@Autowired的使用來消除get.set方法 @Spri
原创 linux開放防火牆端口命令
1.通過systemctl status firewalld查看firewalld狀態,發現當前是dead狀態,即防火牆未開啓。 2.通過systemctl start firewalld開啓防火牆,沒有任何提示即開啓成功。 3.再次通過
原创 nacos 開機自啓
必須開啓8848防火牆端口 1.添加nacos.service文件 vim /lib/systemd/system/nacos.service [Unit] Description=nacos After=network.targ
原创 將第一張表查詢出的結果作爲關聯條件,修改第二張表數據
UPDATE ftms_iov_car_info fici INNER JOIN ( SELECT fieu.id, fieu.enterprise_code FROM ft
原创 springboot 配置文件大全
debug=false # Enable debug logs. trace=false # Enable trace logs. # LOGGING logging.config= # Location of the logging