简介: MyBatis 是支持普通 SQL 查询,存储过程和高级映射的优秀持久层框架。 MyBatis 消除了几乎所有的 JDBC 代码和参数的手工设置以及结果集的检索。MyBatis 使用简单的 XML或注解用于配置和原始映射,将接口和 Java 的 POJOs(Plan Old Java Objects,普
简介: MyBatis 是支持普通 SQL 查询,存储过程和高级映射的优秀持久层框架。 MyBatis 消除了几乎所有的 JDBC 代码和参数的手工设置以及结果集的检索。MyBatis 使用简单的 XML或注解用于配置和原始映射,将接口和 Java 的 POJOs(Plan Old Java Objects,普通的 Java对象)映射成数据库中的记录。使用步骤:
1、首先,导入包: 导入mybatis和其三方的jar包,还有 数据库的 驱动包;
2、然后,写mybatis。xml配置文件: @、在类根目录创建mybatis.xml文件,里面的内容是这样子滴:
(里面需要更改的就是,连接的数据库要素,还有最后的sql映射的配置文件,下一点就说明)
<code class="language-xml"><?xml version="1.0" encoding="UTF-8" ?><code class="language-xml"><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"<code class="language-xml">"http://mybatis.org/dtd/mybatis-3-config.dtd"><code class="language-xml"><configuration><code class="language-xml"> <code class="language-xml"><!-- 这个是po类的设置 这样不必在sql中写po类的全限定名 --> <code class="language-xml"> <typeAliases> <typeAlias alias="Photo" type="com.bjsxt.po.Photo"/> </typeAliases> <code class="language-xml"> <code class="language-xml"> <environments default="development"><code class="language-xml"> <environment id="development"><code class="language-xml"> <transactionManager type="JDBC" /><code class="language-xml"> <dataSource type="POOLED"><code class="language-xml"> <property name="driver" value="com.mysql.jdbc.Driver" /><code class="language-xml"> <property name="url" value="jdbc:mysql://localhost/photo" /><code class="language-xml"> <property name="username" value="root" /><code class="language-xml"> <property name="password" value="xiaohang" /><code class="language-xml"> </dataSource><code class="language-xml"> </environment><code class="language-xml"> </environments><code class="language-xml"> <mappers><code class="language-xml"> <!-- sql 映射文件 这个是对应的配置文件 这个配置文件和dao里面的接口类联系 --><code class="language-xml"> <mapper resource="com/smallang/dao/PhotoDao.xml" /><code class="language-xml"> </mappers><code class="language-xml"></configuration></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">3、接着,创建dao和对应xml sql映射文件:
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><strong>@、</strong> 创建一个接口,里面就是一个或多个方法:比如像这样:
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">(这个里面就是各种方法,sql语句是放在映射的xml文件里面的,当然这个参数和返回类型是会面)
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">public interface PhotoDao {<code class="language-xml"> public void savePhoto(Photo photo);<code class="language-xml"> public Photo getPhotoById(int id); <code class="language-xml"> public Photo findPhotoByName(String name,int uid); <code class="language-xml">// public Photo findPhotoByName2(Map<String, Object> v); <code class="language-xml"> public Photo findPhotoByName2(Photo photo); <code class="language-xml"> public List<Photo> findPhotos();<code class="language-xml">} </code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><strong>@、</strong> 创建于类名相同的xml,像这样PhotoDao.xml 里面的配置是这样的:
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><?xml version="1.0" encoding="UTF-8" ?><code class="language-xml"><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"<code class="language-xml">"http://mybatis.org/dtd/mybatis-3-mapper.dtd"><code class="language-xml"><mapper namespace="com.bjsxt.dao.PhotoDao"><code class="language-xml"> <!-- Id :dao中的方法名字 parameterType:方法中传参的类型 --><code class="language-xml"> <insert id="savePhoto" parameterType="Photo"> <!-- name 代表方法中第一个参数的name属性值 --><code class="language-xml"> insert into t_photo (name,uploadDate) values (#{name},#{uploadDate})<code class="language-xml"> </insert><code class="language-xml"> <!-- java中基本数据类型和string 都不需指定类型 parameterType="int" 不要--><code class="language-xml"> <select id="getPhotoById" resultType="Photo"> <!-- dsfsfs 代表方法中第一个参数的值 --><code class="language-xml"> select * from t_photo where id=#{dsfsfs}<code class="language-xml"> </select><code class="language-xml"> <code class="language-xml"> <!-- #{和方法中参数的名字无关} {表示第n个参数的值或者其属性的值,或者其key的值}--><code class="language-xml"> <select id="findPhotoByName" resultType="Photo"> <!-- {}可以使用下标表示n --><code class="language-xml"> select * from t_photo where name=#{0} and uid=#{1}<code class="language-xml"> </select> <code class="language-xml"> <code class="language-xml"> <select id="findPhotoByName2" resultType="Photo"> <!-- {}: map中的key --><code class="language-xml"> select * from t_photo where name=#{name} and uid=#{uid}<code class="language-xml"> </select><code class="language-xml"> <code class="language-xml"> <!-- resultType表示sql语句执行之后返回的数据类型 --><code class="language-xml"> <select id="findPhotos" resultType="Photo"><code class="language-xml"> select * from t_photo<code class="language-xml"> </select><code class="language-xml"></mapper></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">(解释上面的东东: 绿色:id= 对应的方法名;
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">蓝色:parameterType 参数的类型 特殊类必学写
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">黄色:sql 的 语句 (里面的#{参数类属性名} 或 #{0,1.。。}下标 来使用参数的数据)
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">粉色:resultType = 返回类型 )
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">然后这里有一个多表查询,返回list<map>d 数据;像这样 </map>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><select id="findPhotoName" resultType="map"><code class="language-xml"> select p.name as pn,a.name as an from t_photo as p join t_album a on p.aid=a.id<code class="language-xml"> </select><code class="language-xml">public List<Photo> findPhotos();</code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">还有<strong>高级的动态SQL(DynamicSQL)的使用</strong>,也是在这个,xml里面: 这些的东东; 例子: <u><em>Foreach的:</em></u> foreach元素的属性主要有item,index,collection,open,separator,close。item表示集合中每一个元素进行迭代时的别名,index指定一个名字,用于表示在迭代过程中,每次迭代到的位置,open表示该语句以什么开始,separator表示在每次进行迭代之间以什么符号作为分隔符,close表示以什么结束,在使用foreach的时候最关键的也是最容易出错的就是collection属性,该属性是必须指定的,但是在不同情况下,该属性的值是不一样的,主要有一下3种情况:
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">如果传入的是单参数且参数类型是一个List的时候,collection属性值为list
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">如果传入的是单参数且参数类型是一个array数组的时候,collection的属性值为array
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">如果传入的参数是多个的时候,我们就需要把它们封装成一个Map了,当然单参数也可以封装成map,实际上如果你在传入参数的时候,在MyBatis里面也是会把它封装成一个Map的,map的key就是参数名,所以这个时候collection属性值就是传入的List或array对象在自己封装的map里面的key
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">public List<Album> findAlbum(List<Integer> ids); <code class="language-xml">//list<?> 接口里面的 因为查找包含条件不同,所以需要动态 <code class="language-xml"> <select id="findAlbum" resultType="Album"><code class="language-xml"> select * from t_album where id in <code class="language-xml"> <foreach collection="list" item="id" open="(" close=")" separator=","><code class="language-xml"> #{id}<code class="language-xml"> </foreach> <code class="language-xml"> </select></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">If 的例子就不用了; where的例子有一个:
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"> <select id="findAlbum2" resultType="Album"><!-- 整数不能当成int,而是Integer --><code class="language-xml"> select * from t_album <code class="language-xml"> <where><code class="language-xml"> <if test="name!=null"><code class="language-xml"> name=#{name} <code class="language-xml"> </if><code class="language-xml"> <if test="name !=null and uid!=null"><code class="language-xml"> and <code class="language-xml"> </if><code class="language-xml"> <if test="uid!=null"><code class="language-xml"> uid=#{uid}<code class="language-xml"> </if><code class="language-xml"> </where><code class="language-xml"> </select><code class="language-xml">就是如果where 后面有东东的话 就会输出where + 后面的东东 否则 就不输出</code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">choose choose元素的作用就相当于JAVA中的switch语句,基本上跟JSTL中的choose的作用和用法是一样的,通常都是与when和otherwise搭配的。看如下一个例子:
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"> <select id="dynamicChooseTest" parameterType="Blog" resultType="Blog"><code class="language-xml"> select * from t_blog where 1 = 1 <code class="language-xml"> <choose><code class="language-xml"> <when test="title != null"><code class="language-xml"> and title = #{title}<code class="language-xml"> </when><code class="language-xml"> <when test="content != null"><code class="language-xml"> and content = #{content}<code class="language-xml"> </when><code class="language-xml"> <otherwise><code class="language-xml"> and owner = "owner1"<code class="language-xml"> </otherwise><code class="language-xml"> </choose><code class="language-xml"> </select></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">trim: trim元素的主要功能是可以在自己包含的内容前加上某些前缀,也可以在其后加上某些后缀,与之对应的属性是prefix和suffix;可以把包含内容的首部某些内容覆盖,即忽略,也可以把尾部的某些内容覆盖,对应的属性是prefixOverrides和suffixOverrides;正因为trim有这样的功能,所以我们也可以非常简单的利用trim来代替where元素的功能,示例代码如下:
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"> <select id="dynamicTrimTest" parameterType="Blog" resultType="Blog"><code class="language-xml"> select * from t_blog <code class="language-xml"> <trim prefix="where" prefixOverrides="and |or"><code class="language-xml"> <if test="title != null"><code class="language-xml"> title = #{title}<code class="language-xml"> </if><code class="language-xml"> <if test="content != null"><code class="language-xml"> and content = #{content}<code class="language-xml"> </if><code class="language-xml"> <if test="owner != null"><code class="language-xml"> or owner = #{owner}<code class="language-xml"> </if><code class="language-xml"> </trim><code class="language-xml"> </select></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code></code>
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml">set: set元素主要是用在更新操作的时候,它的主要功能和where元素其实是差不多的,主要是在包含的语句前输出一个set,然后如果包含的语句是以逗号结束的话将会把该逗号忽略,如果set包含的内容为空的话则会出错。有了set元素我们就可以动态的更新那些修改了的字段。(如果set中一个条件都不满足,即set中包含的内容为空的时候就会报错。)<br>
这个的例子不copy了,感觉没什么用的;
<code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code class="language-xml"><code cl>

命名管道是一种在操作系统中相对比较低级的进程通信方式,它是一种以文件为中介的进程通信方式。在Go语言中,通过os包提供了对命名管道的支持。在本文中,我们将介绍如何在Go中使用命名管道来实现进程间通信。一、命名管道的概念命名管道是一种特殊的文件,可以被多个进程同时访问。在Linux系统中,命名管道是一种特殊的文件类型,它们存在于文件系统的某个位置上,并且可以在

在Go语言中,使用第三方库是非常方便的。许多优秀的第三方库和框架可以帮助我们快速地开发应用程序,同时也减少了我们自己编写代码的工作量。但是如何正确地使用第三方库,确保其稳定性和可靠性,是我们必须了解的一个问题。本文将从以下几个方面介绍如何使用第三方库,并结合具体例子进行讲解。一、第三方库的获取Go语言中获取第三方库有以下两种方式:1.使用goget命令首先

随着传统的多线程模型在高并发场景下的性能瓶颈,协程成为了PHP编程领域的热门话题。协程是一种轻量级的线程,能够在单线程中实现多任务的并发执行。在PHP的语言生态中,协程得到了广泛的应用,比如Swoole、Workerman等框架就提供了对协程的支持。那么,如何在PHP中使用协程呢?本文将介绍一些基本的使用方法以及常见的注意事项,帮助读者了解协程的运作原理,以

数据聚合函数是一种用于处理数据库表中多行数据的函数。在PHP中使用数据聚合函数可以使得我们方便地进行数据分析和处理,例如求和、平均数、最大值、最小值等。下面将介绍如何在PHP中使用数据聚合函数。一、介绍常用的数据聚合函数COUNT():计算某一列的行数。SUM():计算某一列的总和。AVG():计算某一列的平均值。MAX():取出某一列的最大值。MIN():

变量函数是指可以使用变量来调用函数的一种特殊语法。在PHP中,变量函数是非常有用的,因为它可以让我们更加灵活地使用函数。在本文中,我们将介绍如何在PHP中使用变量函数。定义变量函数在PHP中,变量函数的定义方式非常简单,只需要将要调用的函数名赋值给一个变量即可。例如,下面的代码定义了一个变量函数:$func='var_dump';这里将var_dump函

随着音频处理在各种应用场景中的普及,越来越多的程序员开始使用Go编写音频处理程序。Go语言作为一种现代化的编程语言,具有优秀的并发性和高效率的特点,使用它进行音频处理十分方便。本文将介绍如何在Go中使用音频处理技术,包括读取、写入、处理和分析音频数据等方面的内容。一、读取音频数据在Go中读取音频数据有多种方式。其中比较常用的是使用第三方库进行读取,比如go-

在Go语言中,嵌套结构是一种非常常见的技术。通过将一个结构体嵌入到另一个结构体中,我们可以将复杂的数据模型分解成更小的部分,使其易于理解和维护。本篇文章将介绍如何在Go中使用嵌套结构以及一些最佳实践。一、定义嵌套结构首先,我们需要定义一个包含嵌套结构的结构体。下面的代码演示了如何定义一个包含Person结构体的Company结构体:typePersons

<p>Windows 系统上的 OneDrive 应用程序允许您将文件存储在高达 5 GB 的云上。OneDrive 应用程序中还有另一个功能,它允许用户选择一个选项,是将文件保留在系统空间上还是在线提供,而不占用您的系统存储空间。此功能称为按需文件。在这篇文章中,我们进一步探索了此功能,并解释了有关如何在 Windows 11 电脑上的 OneDrive 中按需使用文件的各种选项。</p><h2>如何使用 On


핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

드림위버 CS6
시각적 웹 개발 도구

맨티스BT
Mantis는 제품 결함 추적을 돕기 위해 설계된 배포하기 쉬운 웹 기반 결함 추적 도구입니다. PHP, MySQL 및 웹 서버가 필요합니다. 데모 및 호스팅 서비스를 확인해 보세요.

ZendStudio 13.5.1 맥
강력한 PHP 통합 개발 환경

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

DVWA
DVWA(Damn Vulnerable Web App)는 매우 취약한 PHP/MySQL 웹 애플리케이션입니다. 주요 목표는 보안 전문가가 법적 환경에서 자신의 기술과 도구를 테스트하고, 웹 개발자가 웹 응용 프로그램 보안 프로세스를 더 잘 이해할 수 있도록 돕고, 교사/학생이 교실 환경 웹 응용 프로그램에서 가르치고 배울 수 있도록 돕는 것입니다. 보안. DVWA의 목표는 다양한 난이도의 간단하고 간단한 인터페이스를 통해 가장 일반적인 웹 취약점 중 일부를 연습하는 것입니다. 이 소프트웨어는

뜨거운 주제



