- 博客(67)
- 收藏
- 关注
转载 java使用MySQL和HQL数据去重
思路先查询出满足某种条件的数据的最小ID,然后删除最小ID以外的数据就实现了去重实例查询最小ID的重复数据select * from oms_relation_model orm where orm.fd_id= ( select min(t.fd_id) from oms_relation_model t where orm....
2019-08-28 09:28:00
273
转载 运行Djongo项目
安装 python3https://www.python.org/downloads/设置环境变量PY_HOMEC:\Users\Terwer\AppData\Local\Programs\Python\Python37Path%PY_HOME%%PY_HOME%\Scripts安装 pipenvpip install pipenv安装 Djongo添加pipfi...
2019-05-24 11:17:00
197
转载 Spring源码解析(一)实现IOC的几种方式
项目结构├── iocinit.iml├── pom.xml├── src│ ├── main│ │ ├── java│ │ │ └── com│ │ │ └── terwergreen│ │ │ └── spring│ │ │ └── iocinit│ │...
2019-05-17 22:04:00
203
转载 VMWare安装黑苹果
安装unlocker打开新建项https://github.com/DrDonk/unlocker端口转发https://jingyan.baidu.com/article/375c8e19d6206f25f2a22931.html设置分辨率/Library/Application\ Support/VMware\ Tools/vmware-resolutionSet 1920...
2019-05-15 16:29:00
234
转载 Spring Cloud学习笔记
Spring Cloud(1):微服务简介转载于:https://www.cnblogs.com/tangyouwei/p/10869909.html
2019-05-15 15:52:00
85
转载 美化cnblogs
前台// ==UserScript==// @name 博客园// @namespace http://www.terwergreen.com/// @version 0.0.1// @description 博客园界面美化// @author Terwer// @match *://www.cnblogs.com...
2019-05-07 19:48:00
172
转载 模仿京东多级菜单
<html lang="zh"><head> <meta charset="UTF-8"> <title>Menu</title> <style type="text/css"> ul, dl, dd { padding: 0; ...
2019-05-07 18:04:00
170
转载 Windows 10 编译 OpenJDK11
下载openjdk11源码hg clone https://hg.openjdk.java.net/jdk-updates/jdk11u-dev/转载于:https://www.cnblogs.com/tangyouwei/p/10654191.html
2019-04-04 12:42:00
936
转载 Spring Boot2.1.3全局跨域
/** * 配置跨域访问 * * @author Terwer */ @Bean public WebMvcConfigurer corsConfigurer() { return new WebMvcConfigurer() { @Override public ...
2019-03-22 16:20:00
243
转载 为Vue.js添加友好日志
const isDebugEnabled = process.env.NODE_ENV !== "production";const isInfoEnabled = true;const isErrorEnabled = true;let loggerName = "default";console.log( "isDebugEnabled,isInfoEnabled,i...
2019-03-19 17:29:00
160
转载 Nuxt.js调用asyncData
<template> <div> Index {{ username }} </div></template><script>export default { name: "Index", async asyncData () { const asyncData = {}; awa...
2019-03-19 15:12:00
1822
转载 阿里云Ubuntu 18.04安装图形界面
#!/bin/bash#更新软件库apt-get update#升级软件apt-get upgrade#安装ubuntu桌面系统apt-get install ubuntu-desktop转载于:https://www.cnblogs.com/tangyouwei/p/10522735.html
2019-03-13 14:07:00
568
转载 在CentOS 7.6上安装VNC Server
停止并禁用防火墙systemctl stop firewalld.servicesystemctl disable firewalld.service安装vnxserveryum install tigervnc tigervnc-server -y启动vncserver(服务器端)···vncserver :n···这里的n是 sessionnumber,不指定默认为...
2019-03-13 13:47:00
237
转载 CentOS7.6 安装Docker
删除已安装的Docker# Uninstall installed dockersudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ d...
2019-03-12 10:12:00
218
转载 CentOS 7.6 安装 Weblogic 12
http://download.oracle.com/otn/nt/middleware/12c/12213/fmw_12.2.1.3.0_wls_Disk1_1of1.zipjava -jar fmw_12.2.1.3.0_wls.jar创建应用程序域weblogicweblogic123456start/home/oracle/Oracle/Middleware/...
2019-03-10 14:51:00
161
转载 CentOS 7.6 安装Oracle 12c
下载地址:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.htmlhttps://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle12c-linux-12201-3608234.ht...
2019-03-09 19:48:00
242
转载 Mysql 根据id查所有父级或子级
https://www.cnblogs.com/wangxusummer/p/5193219.html转载于:https://www.cnblogs.com/tangyouwei/p/10490556.html
2019-03-07 16:34:00
401
转载 Maven Tomcat Plugin
<!-- 本地Tomcat --><dependency> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</vers...
2019-03-07 11:01:00
126
转载 查询知识点详情
SELECT bqk.id,bqk.cn_name as cnName,bqk.recorder,bqk.record_time as recordTime ,GROUP_CONCAT(rel_tab.textbooks_id) as relateTextbookString ,GROUP_CONCAT(rel_tab.address) as address ...
2019-03-06 17:25:00
378
转载 东周列国电视剧
第1集 骊山烽火第2集 黄泉认母第3集 如此君臣第4集 筑台纳媳转载于:https://www.cnblogs.com/tangyouwei/p/10463088.html
2019-03-02 21:37:00
455
转载 配置zsh
.zshrcexport ZSH="/root/.oh-my-zsh"ZSH_THEME="robbyrussell"plugins=(git zsh-syntax-highlighting)source $ZSH/oh-my-zsh.sh#envsource /home/conf/.env.env# javaJAVA_HOME=/home/soft/jdk1.8.0...
2019-03-01 21:52:00
210
转载 使用graalvm.js调用promise
前提1、JDK1.82、引入jar包<!--graalvm.js --><dependency> <groupId>org.graalvm.js</groupId> <artifactId>js</artifactId> <version>1.0.0-rc12</ve...
2019-02-09 12:46:00
1051
转载 backup
https://download.jetbrains.com/idea/ideaIU-2018.3.4.tar.gz转载于:https://www.cnblogs.com/tangyouwei/p/10356122.html
2019-02-08 13:41:00
98
转载 使用babel与@babel/node
安装yarn add -D @babel/cli @babel/node编译entry-server.jsyarn babel ./src/ssr/entry-server.js --presets=@babel/preset-envvar hello = () => { return "Hello World";};console.log(hello());...
2019-01-30 18:37:00
115
转载 CSS图片垂直居中
<div class="imgWrap"> <div class="align-middle"> <a href="/"><img class="logo" src="./images/logo.png" alt="Terwer"/></a> </div></div>/*** 图片居...
2019-01-24 15:17:00
79
转载 Yarn && npm设置镜像源
安装yarnnpm i -g yarnyarnyarn config set registry https://registry.npm.taobao.org --global && \yarn config set disturl https://npm.taobao.org/dist --global && \yarn config set...
2019-01-24 12:13:00
509
转载 wslgit
@echo offsetlocal enabledelayedexpansionset command=%*If %PROCESSOR_ARCHITECTURE% == x86 ( echo | C:\Windows\sysnative\bash.exe -c 'git %command%') Else ( echo | bash.exe -c 'git %com...
2019-01-09 23:06:00
143
转载 MyBatis时间比较
<if test="submitTime!=null and submitTime!=''"> AND DATE_FORMAT(sc.submit_time, '%Y-%m-%d') = DATE_FORMAT(#{submitTime}, '%Y-%m-%d')</if><if test="correctTime!=null and corre...
2018-12-26 17:03:00
462
转载 layer开启与关闭加载层
// 开启加载层layer.load(2, { shade: [0.6, '#fff'], content: '数据加载中...', success: function (layero) { layero.find('.layui-layer-content').css({ 'padding-top': '6px', ...
2018-12-24 06:16:00
1939
转载 MyBatis中choose when正确写法
<choose> <when test="scoreRange!=null and scoreRange eq 1"> AND sc.score <![CDATA[ < ]]> 60 </when> <when test="scoreRange!=null and scoreRange e...
2018-12-22 19:11:00
870
转载 开始使用vue和vuetify
底部加上vue的script<!-- development version, includes helpful console warnings --><script src="https://unpkg.com/vue/dist/vue.js"></script><!-- vuetify --><script src="h...
2018-12-18 15:50:00
155
转载 解决sudo: npm: command not found
sudo ln -s /opt/node-v11.4.0/bin/npm /usr/bin/npm sudo ln -s /opt/node-v11.4.0/bin/node /usr/bin/node 转载于:https://www.cnblogs.com/tangyouwei/p/10130956.html
2018-12-17 13:22:00
3033
转载 debian安装nodejs
https://nodejs.org/en/download/二进制安装sudo wget https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.xzsudo tar -xvf ./node-v10.15.1-linux-x64.tar.xz环境变量sudo vim ~/.profile#nodeNODE...
2018-12-13 18:05:00
201
转载 python与pip安装
# Install pip for 2.7 and then python 2.7 itselfsudo apt install python-pipsudo apt install python2.7# Install pip for 3.6sudo apt install python3-pip# Install currently supported by Ubuntu...
2018-12-13 17:51:00
268
转载 配置zsh
https://dev.to/chiangs/how-i-bling-ified-my-terminal-2o6b转载于:https://www.cnblogs.com/tangyouwei/p/10109160.html
2018-12-12 16:33:00
69
转载 /etc/apt/sources.list" E212: Can't open file for writing解决方案
:w !sudo tee % > /dev/null解决。转载于:https://www.cnblogs.com/tangyouwei/p/10109090.html
2018-12-12 16:24:00
7501
转载 debian设置软件源为阿里云
首先编辑sources.list这个文件sudo vim /etc/apt/sources.list把sources.list文件内容替换成如下deb http://mirrors.aliyun.com/debian wheezy main contrib non-freedeb-src http://mirrors.aliyun.com/debian wheezy main c...
2018-12-12 16:18:00
1673
转载 Linux下无法清空回收站
清空回收站发生错误,直接使用命令sudo rm -rf ~/.local/share/Trash/files/*搞定转载于:https://www.cnblogs.com/tangyouwei/p/10089933.html
2018-12-09 00:28:00
370
转载 tomcat远程部署war包,显示连接被重置
在tomcat 目录: /opt/apache-tomcat-9.0.13/webapps/manager/WEB-INF/web.xml 下修改:<multipart-config> <!-- 500MB max --> <max-file-size>524288000</max-file-size> <m...
2018-12-08 17:07:00
675
转载 deepin中Tomcat添加执行权限
terwer@terwer-PC:~$ cd /opt/*tomcat*/binterwer@terwer-PC:/opt/apache-tomcat-9.0.13/bin$ sudo chmod u+x ./*.sh提示无JAVA_HOME,但是我已经设置了JAVA_HOMEterwer@terwer-PC:/opt/apache-tomcat-9.0.13/bin$ sudo ...
2018-12-08 16:37:00
179
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人