doc:晚上idea设置文档
@ -12,3 +12,122 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 设置鼠标滚轮控制文字大小
|
||||||
|
|
||||||
|
`File->Settings->Editor->General->change font size with Ctrl+Mouse Wheell in:`
|
||||||
|
|
||||||
|
选择 Active editor 仅作用于当前的窗口
|
||||||
|
|
||||||
|
选择 All editors 作用所有的窗口
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 设置Java文件注释
|
||||||
|
|
||||||
|
`File->Settings->Editor->File and Code Templates->includes`
|
||||||
|
|
||||||
|
```java
|
||||||
|
/**
|
||||||
|
* @author ds
|
||||||
|
* @since ${DATE}
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 设置Java文件注释快捷键
|
||||||
|
|
||||||
|
`File->Settings->Editor->Live Templates—>Java`
|
||||||
|
|
||||||
|
**新建快捷键cc**
|
||||||
|
|
||||||
|
```java
|
||||||
|
/**
|
||||||
|
* @author ds
|
||||||
|
* @since $DATE$
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**点击Edit Variables进行变量设置**
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 设置mybatis xml文件模板
|
||||||
|
|
||||||
|
`File->Settings->Editor->File and Code Templates->Files->点击加号新建`
|
||||||
|
|
||||||
|
**mapper**
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="${PACKAGE_NAME}.${NAME}">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**mapperUp**
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="${PACKAGE_NAME}.${NAME}">
|
||||||
|
|
||||||
|
<resultMap type="" id="">
|
||||||
|
<result property="" column=""/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="">
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="" parameterType="" resultMap="">
|
||||||
|
<!-- refid 为对应 sql 的 id-->
|
||||||
|
<include refid =""/>
|
||||||
|
<where>
|
||||||
|
<if test=""></if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="" parameterType="">
|
||||||
|
<selectKey keyProperty="uuid" resultType="String" order="BEFORE">
|
||||||
|
<!-- 添加 uuid -->
|
||||||
|
SELECT REPLACE(NEWID(), '-', '') AS uuid
|
||||||
|
</selectKey>
|
||||||
|
insert into tabel
|
||||||
|
<!-- 前后加上括号,去除多余的 逗号 -->
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="value != null and value != ''">value</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="value != null and value != ''">#{value}</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="" parameterType="">
|
||||||
|
update table
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test=""></if>
|
||||||
|
</trim>
|
||||||
|
<!-- -->
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="" parameterType="">
|
||||||
|
<!-- 删除语句 -->
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="" parameterType="">
|
||||||
|
select from table wherer uuid in
|
||||||
|
<foreach item="" collection="" open="(" separator="," close=")">
|
||||||
|
#{uuid}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
BIN
apps/IntelliJ IDEA/assets/image-20240107111816430.png
Normal file
After Width: | Height: | Size: 158 KiB |
BIN
apps/IntelliJ IDEA/assets/image-20240107113228037.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
apps/IntelliJ IDEA/assets/image-20240107113610089.png
Normal file
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 144 KiB |
BIN
apps/IntelliJ IDEA/assets/image-20240107113615287.png
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
apps/IntelliJ IDEA/assets/image-20240107113638495.png
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
apps/IntelliJ IDEA/assets/image-20240107114939198.png
Normal file
After Width: | Height: | Size: 156 KiB |
BIN
apps/IntelliJ IDEA/assets/image-20240107115139716.png
Normal file
After Width: | Height: | Size: 32 KiB |
@ -20,6 +20,8 @@ WantedBy=multi-user.target
|
|||||||
##刷新
|
##刷新
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
|
|
||||||
|
#开启开机重启
|
||||||
|
sudo systemctl enable openvpnclient.service
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|