原创 mybatis中in對一個string數組取值

@Select("select * from discount_code where id in (${disCode})") List<DiscountCodeInfo> selectByIds(@Param("disCode

原创 mybatis

1.查詢到結果 2.映射 解決辦法:

原创 springboot 報錯

版本問題: 將 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent

原创 Ribbon和Nginx比較

1) Nginx 基於C語言,快速,性能高5w/s。 Redis 5w/s,RibbatMQ 1.2w/s ApacheActiveMQ 0.6w/s 業務系統,kafka 20w~50w/s大數據,Zuul2.0 200w/s 負載

原创 SpringBoot來構建EurekaServer端

SpringCloud必須增加額外依賴管理,版本對應關係 <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework

原创 克隆虛擬機後無法聯網

問題描述: Bringing up interface Auto_eth1: Error: No suitable device found: no device found for connection ‘Auto eth1’ 解

原创 多條件關聯查詢

select <include refid="Detail_Refund"></include> from order_detail as a left join mj_refund

原创 插入一條不重複的數據

insert into sys_user (username, password, likeName, imgurl, email, mobile, userType, remark, enabledF

原创 alibaba toolkit

在這裏插入圖片描述

原创 Column 'creatUser' in where clause is ambiguous

該查詢是否是多表查詢,每張表都有該字段,

原创 mybatis更新記錄時與原來數據不重複

where id = #{id} and NOT EXISTS( SELECT a.configCode from ( SELECT configCode FROM sys_conf WHERE configCode

原创 Linux環境下安裝jdk1.8

1.解壓jdk tar -xvf jdk.xxxx.tar 2.配置環境變量 vim /etc/profile 在末尾加上如下配置` #set java env JAVA_HOME=/home/tools/jdk1.8.0_51 JA

原创 兩臺局域網內的阿里雲服務器傳文件

scp -P 22 -r [email protected]:/root/dirname/ /home/dirname/

原创 linux環境下安裝nginx

1.解壓nginx tar -xvf nginx.xxxx.tar 2.進入安裝源包 3.開始安裝,安裝nginx前,我們首先要確保系統安裝了g++、gcc、openssl-devel、pcre-devel和zlib-devel軟件

原创 mybtis foreach寫法

<delete id="deleteObjects"> delete from sys_logs where id in <!-- (1,2,3,4,5) --> <foreach co