在线观看www成人影院-在线观看www日本免费网站-在线观看www视频-在线观看操-欧美18在线-欧美1级

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

MapStruct是用來做什么的

Android編程精選 ? 來源:CSDN技術社區 ? 作者:飛飛不 會飛 ? 2022-06-15 17:02 ? 次閱讀
首先來了解一下DTO,DTO簡單的理解就是做數據傳輸對象的,類似于VO,但是VO用于傳輸到前端。

1.MapStruct是用來做什么的?

現在有這么個場景,從數據庫查詢出來了一個user對象(包含id,用戶名,密碼,手機號,郵箱,角色這些字段)和一個對應的角色對象role(包含id,角色名,角色描述這些字段),現在在controller需要用到user對象的id,用戶名,和角色對象的角色名三個屬性。

一種方式是直接把兩個對象傳遞到controller層,但是這樣會多出很多沒用的屬性。更通用的方式是需要用到的屬性封裝成一個類(DTO),通過傳輸這個類的實例來完成數據傳輸。

User.java

@AllArgsConstructor
@Data
publicclassUser{
privateLongid;
privateStringusername;
privateStringpassword;
privateStringphoneNum;
privateStringemail;
privateRolerole;
}

Role.java

@AllArgsConstructor
@Data
publicclassRole{
privateLongid;
privateStringroleName;
privateStringdescription;
}

UserRoleDto.java,這個類就是封裝的類

@Data
publicclassUserRoleDto{
/**
*用戶id
*/
privateLonguserId;
/**
*用戶名
*/
privateStringname;
/**
*角色名
*/
privateStringroleName;
}

測試類,模擬將user對象轉換成UserRoleDto對象

publicclassMainTest{
Useruser=null;

/**
*模擬從數據庫中查出user對象
*/
@Before
publicvoidbefore(){
Rolerole=newRole(2L,"administrator","超級管理員");
user=newUser(1L,"zhangsan","12345","17677778888","123@qq.com",role);
}

/**
*模擬把user對象轉換成UserRoleDto對象
*/
@Test
publicvoidtest1(){
UserRoleDtouserRoleDto=newUserRoleDto();
userRoleDto.setUserId(user.getId());
userRoleDto.setName(user.getUsername());
userRoleDto.setRoleName(user.getRole().getRoleName());
System.out.println(userRoleDto);
}
}

從上面代碼可以看出,通過getter、setter的方式把一個對象屬性值復制到另一個對象中去還是很麻煩的,尤其是當屬性過多的時候。而MapStruct就是用于解決這種問題的。

2.使用MapStruct解決上述問題

這里我們沿用User.java、Role.java、UserRoleDto.java。

新建一個UserRoleMapper.java,這個來用來定義User.java、Role.java和UserRoleDto.java之間屬性對應規則:

UserRoleMapper.java

importorg.mapstruct.Mapper;
importorg.mapstruct.Mapping;
importorg.mapstruct.Mappings;
importorg.mapstruct.factory.Mappers;

/**
*@Mapper定義這是一個MapStruct對象屬性轉換接口,在這個類里面規定轉換規則
*在項目構建時,會自動生成改接口的實現類,這個實現類將實現對象屬性值復制
*/
@Mapper
publicinterfaceUserRoleMapper{

/**
*獲取該類自動生成的實現類的實例
*接口中的屬性都是publicstaticfinal的方法都是publicabstract的
*/
UserRoleMapperINSTANCES=Mappers.getMapper(UserRoleMapper.class);

/**
*這個方法就是用于實現對象屬性復制的方法
*
*@Mapping用來定義屬性復制規則source指定源對象屬性target指定目標對象屬性
*
*@paramuser這個參數就是源對象,也就是需要被復制的對象
*@return返回的是目標對象,就是最終的結果對象
*/
@Mappings({
@Mapping(source="id",target="userId"),
@Mapping(source="username",target="name"),
@Mapping(source="role.roleName",target="roleName")
})
UserRoleDtotoUserRoleDto(Useruser);

}

在測試類中測試:

通過上面的例子可以看出,使用MapStruct方便許多。

3.添加默認方法

添加默認方法是為了這個類(接口)不只是為了做數據轉換用的,也可以做一些其他的事。

importorg.mapstruct.Mapper;
importorg.mapstruct.Mapping;
importorg.mapstruct.Mappings;
importorg.mapstruct.factory.Mappers;

/**
*@Mapper定義這是一個MapStruct對象屬性轉換接口,在這個類里面規定轉換規則
*在項目構建時,會自動生成改接口的實現類,這個實現類將實現對象屬性值復制
*/
@Mapper
publicinterfaceUserRoleMapper{

/**
*獲取該類自動生成的實現類的實例
*接口中的屬性都是publicstaticfinal的方法都是publicabstract的
*/
UserRoleMapperINSTANCES=Mappers.getMapper(UserRoleMapper.class);

/**
*這個方法就是用于實現對象屬性復制的方法
*
*@Mapping用來定義屬性復制規則source指定源對象屬性target指定目標對象屬性
*
*@paramuser這個參數就是源對象,也就是需要被復制的對象
*@return返回的是目標對象,就是最終的結果對象
*/
@Mappings({
@Mapping(source="id",target="userId"),
@Mapping(source="username",target="name"),
@Mapping(source="role.roleName",target="roleName")
})
UserRoleDtotoUserRoleDto(Useruser);

/**
*提供默認方法,方法自己定義,這個方法是我隨便寫的,不是要按照這個格式來的
*@return
*/
defaultUserRoleDtodefaultConvert(){
UserRoleDtouserRoleDto=newUserRoleDto();
userRoleDto.setUserId(0L);
userRoleDto.setName("None");
userRoleDto.setRoleName("None");
returnuserRoleDto;
}

}

測試代碼:

@Test
publicvoidtest3(){
UserRoleMapperuserRoleMapperInstances=UserRoleMapper.INSTANCES;
UserRoleDtouserRoleDto=userRoleMapperInstances.defaultConvert();
System.out.println(userRoleDto);
}

4. 可以使用abstract class來代替接口

mapper可以用接口來實現,也可以完全由抽象來完全代替

importorg.mapstruct.Mapper;
importorg.mapstruct.Mapping;
importorg.mapstruct.Mappings;
importorg.mapstruct.factory.Mappers;

/**
*@Mapper定義這是一個MapStruct對象屬性轉換接口,在這個類里面規定轉換規則
*在項目構建時,會自動生成改接口的實現類,這個實現類將實現對象屬性值復制
*/
@Mapper
publicabstractclassUserRoleMapper{

/**
*獲取該類自動生成的實現類的實例
*接口中的屬性都是publicstaticfinal的方法都是publicabstract的
*/
publicstaticfinalUserRoleMapperINSTANCES=Mappers.getMapper(UserRoleMapper.class);

/**
*這個方法就是用于實現對象屬性復制的方法
*
*@Mapping用來定義屬性復制規則source指定源對象屬性target指定目標對象屬性
*
*@paramuser這個參數就是源對象,也就是需要被復制的對象
*@return返回的是目標對象,就是最終的結果對象
*/
@Mappings({
@Mapping(source="id",target="userId"),
@Mapping(source="username",target="name"),
@Mapping(source="role.roleName",target="roleName")
})
publicabstractUserRoleDtotoUserRoleDto(Useruser);

/**
*提供默認方法,方法自己定義,這個方法是我隨便寫的,不是要按照這個格式來的
*@return
*/
UserRoleDtodefaultConvert(){
UserRoleDtouserRoleDto=newUserRoleDto();
userRoleDto.setUserId(0L);
userRoleDto.setName("None");
userRoleDto.setRoleName("None");
returnuserRoleDto;
}

}

5.可以使用多個參數

可以綁定多個對象的屬性值到目標對象中:

packagecom.mapstruct.demo;

importorg.mapstruct.Mapper;
importorg.mapstruct.Mapping;
importorg.mapstruct.Mappings;
importorg.mapstruct.factory.Mappers;

/**
*@Mapper定義這是一個MapStruct對象屬性轉換接口,在這個類里面規定轉換規則
*在項目構建時,會自動生成改接口的實現類,這個實現類將實現對象屬性值復制
*/
@Mapper
publicinterfaceUserRoleMapper{

/**
*獲取該類自動生成的實現類的實例
*接口中的屬性都是publicstaticfinal的方法都是publicabstract的
*/
UserRoleMapperINSTANCES=Mappers.getMapper(UserRoleMapper.class);

/**
*這個方法就是用于實現對象屬性復制的方法
*
*@Mapping用來定義屬性復制規則source指定源對象屬性target指定目標對象屬性
*
*@paramuser這個參數就是源對象,也就是需要被復制的對象
*@return返回的是目標對象,就是最終的結果對象
*/
@Mappings({
@Mapping(source="id",target="userId"),
@Mapping(source="username",target="name"),
@Mapping(source="role.roleName",target="roleName")
})
UserRoleDtotoUserRoleDto(Useruser);

/**
*多個參數中的值綁定
*@paramuser源1
*@paramrole源2
*@return從源1、2中提取出的結果
*/
@Mappings({
@Mapping(source="user.id",target="userId"),//把user中的id綁定到目標對象的userId屬性中
@Mapping(source="user.username",target="name"),//把user中的username綁定到目標對象的name屬性中
@Mapping(source="role.roleName",target="roleName")//把role對象的roleName屬性值綁定到目標對象的roleName中
})
UserRoleDtotoUserRoleDto(Useruser,Rolerole);

對比兩個方法~

5.直接使用參數作為屬性值

packagecom.mapstruct.demo;

importorg.mapstruct.Mapper;
importorg.mapstruct.Mapping;
importorg.mapstruct.Mappings;
importorg.mapstruct.factory.Mappers;

/**
*@Mapper定義這是一個MapStruct對象屬性轉換接口,在這個類里面規定轉換規則
*在項目構建時,會自動生成改接口的實現類,這個實現類將實現對象屬性值復制
*/
@Mapper
publicinterfaceUserRoleMapper{

/**
*獲取該類自動生成的實現類的實例
*接口中的屬性都是publicstaticfinal的方法都是publicabstract的
*/
UserRoleMapperINSTANCES=Mappers.getMapper(UserRoleMapper.class);

/**
*直接使用參數作為值
*@paramuser
*@parammyRoleName
*@return
*/
@Mappings({
@Mapping(source="user.id",target="userId"),//把user中的id綁定到目標對象的userId屬性中
@Mapping(source="user.username",target="name"),//把user中的username綁定到目標對象的name屬性中
@Mapping(source="myRoleName",target="roleName")//把role對象的roleName屬性值綁定到目標對象的roleName中
})
UserRoleDtouseParameter(Useruser,StringmyRoleName);

}

測試類:

publicclassTest1{
Rolerole=null;
Useruser=null;

@Before
publicvoidbefore(){
role=newRole(2L,"administrator","超級管理員");
user=newUser(1L,"zhangsan","12345","17677778888","123@qq.com",role);
}
@Test
publicvoidtest1(){
UserRoleMapperinstances=UserRoleMapper.INSTANCES;
UserRoleDtouserRoleDto=instances.useParameter(user,"myUserRole");
System.out.println(userRoleDto);
}
}

6.更新對象屬性

在之前的例子中UserRoleDto useParameter(User user, String myRoleName);都是通過類似上面的方法來生成一個對象。而MapStruct提供了另外一種方式來更新一個對象中的屬性。@MappingTarget

publicinterfaceUserRoleMapper1{

UserRoleMapper1INSTANCES=Mappers.getMapper(UserRoleMapper1.class);

@Mappings({
@Mapping(source="userId",target="id"),
@Mapping(source="name",target="username"),
@Mapping(source="roleName",target="role.roleName")
})
voidupdateDto(UserRoleDtouserRoleDto,@MappingTargetUseruser);


@Mappings({
@Mapping(source="id",target="userId"),
@Mapping(source="username",target="name"),
@Mapping(source="role.roleName",target="roleName")
})
voidupdate(Useruser,@MappingTargetUserRoleDtouserRoleDto);

}

通過@MappingTarget來指定目標類是誰(誰的屬性需要被更新)。@Mapping還是用來定義屬性對應規則。

以此為例說明:

@Mappings({
@Mapping(source="id",target="userId"),
@Mapping(source="username",target="name"),
@Mapping(source="role.roleName",target="roleName")
})
voidupdate(Useruser,@MappingTargetUserRoleDtouserRoleDto);

@MappingTarget標注的類UserRoleDto 為目標類,user類為源類,調用此方法,會把源類中的屬性更新到目標類中。更新規則還是由@Mapping指定。

7.沒有getter/setter也能賦值

對于沒有getter/setter的屬性也能實現賦值操作

publicclassCustomer{

privateLongid;
privateStringname;

//gettersandsetteromittedforbrevity
}

publicclassCustomerDto{

publicLongid;
publicStringcustomerName;
}

@Mapper
publicinterfaceCustomerMapper{

CustomerMapperINSTANCE=Mappers.getMapper(CustomerMapper.class);

@Mapping(source="customerName",target="name")
CustomertoCustomer(CustomerDtocustomerDto);

@InheritInverseConfiguration
CustomerDtofromCustomer(Customercustomer);
}

@Mapping(source = “customerName”, target = “name”)不是用來指定屬性映射的,如果兩個對象的屬性名相同是可以省略@Mapping的。

MapStruct生成的實現類:

@Generated(
value="org.mapstruct.ap.MappingProcessor",
date="2019-02-14T1521+0800",
comments="version:1.3.0.Final,compiler:javac,environment:Java1.8.0_181(OracleCorporation)"
)
publicclassCustomerMapperImplimplementsCustomerMapper{

@Override
publicCustomertoCustomer(CustomerDtocustomerDto){
if(customerDto==null){
returnnull;
}

Customercustomer=newCustomer();

customer.setName(customerDto.customerName);
customer.setId(customerDto.id);

returncustomer;
}

@Override
publicCustomerDtotoCustomerDto(Customercustomer){
if(customer==null){
returnnull;
}

CustomerDtocustomerDto=newCustomerDto();

customerDto.customerName=customer.getName();
customerDto.id=customer.getId();

returncustomerDto;
}
}

@InheritInverseConfiguration在這里的作用就是實現customerDto.customerName = customer.getName();功能的。如果沒有這個注解,toCustomerDto這個方法則不會有customerName 和name兩個屬性的對應關系的。

8.使用Spring依賴注入

@Data
@NoArgsConstructor
@AllArgsConstructor
publicclassCustomer{
privateLongid;
privateStringname;
}

@Data
publicclassCustomerDto{
privateLongid;
privateStringcustomerName;
}

//這里主要是這個componentModel屬性,它的值就是當前要使用的依賴注入的環境
@Mapper(componentModel="spring")
publicinterfaceCustomerMapper{

@Mapping(source="name",target="customerName")
CustomerDtotoCustomerDto(Customercustomer);
}

@Mapper(componentModel = “spring”),表示把當前Mapper類納入spring容器。可以在其它類中直接注入了:

@SpringBootApplication
@RestController
publicclassDemoMapstructApplication{

//注入Mapper
@Autowired
privateCustomerMappermapper;

publicstaticvoidmain(String[]args){
SpringApplication.run(DemoMapstructApplication.class,args);
}

@GetMapping("/test")
publicStringtest(){
Customercustomer=newCustomer(1L,"zhangsan");
CustomerDtocustomerDto=mapper.toCustomerDto(customer);
returncustomerDto.toString();
}

}

看一下由mapstruct自動生成的類文件,會發現標記了@Component注解。

@Generated(
value="org.mapstruct.ap.MappingProcessor",
date="2019-02-14T1517+0800",
comments="version:1.3.0.Final,compiler:javac,environment:Java1.8.0_181(OracleCorporation)"
)
@Component
publicclassCustomerMapperImplimplementsCustomerMapper{

@Override
publicCustomerDtotoCustomerDto(Customercustomer){
if(customer==null){
returnnull;
}

CustomerDtocustomerDto=newCustomerDto();

customerDto.setCustomerName(customer.getName());
customerDto.setId(customer.getId());

returncustomerDto;
}
}

9.自定義類型轉換

有時候,在對象轉換的時候可能會出現這樣一個問題,就是源對象中的類型是Boolean類型,而目標對象類型是String類型,這種情況可以通過@Mapper的uses屬性來實現:

@Data
@NoArgsConstructor
@AllArgsConstructor
publicclassCustomer{
privateLongid;
privateStringname;
privateBooleanisDisable;
}

@Data
publicclassCustomerDto{
privateLongid;
privateStringcustomerName;
privateStringdisable;
}

定義轉換規則的類:

publicclassBooleanStrFormat{
publicStringtoStr(BooleanisDisable){
if(isDisable){
return"Y";
}else{
return"N";
}
}
publicBooleantoBoolean(Stringstr){
if(str.equals("Y")){
returntrue;
}else{
returnfalse;
}
}
}

定義Mapper,@Mapper( uses = { BooleanStrFormat.class}),注意,這里的users屬性用于引用之前定義的轉換規則的類:

@Mapper(uses={BooleanStrFormat.class})
publicinterfaceCustomerMapper{

CustomerMapperINSTANCES=Mappers.getMapper(CustomerMapper.class);

@Mappings({
@Mapping(source="name",target="customerName"),
@Mapping(source="isDisable",target="disable")
})
CustomerDtotoCustomerDto(Customercustomer);
}

這樣子,Customer類中的isDisable屬性的true就會轉變成CustomerDto中的disable屬性的yes。

MapStruct自動生成的類中的代碼:

@Generated(
value="org.mapstruct.ap.MappingProcessor",
date="2019-02-14T1618+0800",
comments="version:1.3.0.Final,compiler:javac,environment:Java1.8.0_181(OracleCorporation)"
)
publicclassCustomerMapperImplimplementsCustomerMapper{

//引用uses中指定的類
privatefinalBooleanStrFormatbooleanStrFormat=newBooleanStrFormat();

@Override
publicCustomerDtotoCustomerDto(Customercustomer){
if(customer==null){
returnnull;
}

CustomerDtocustomerDto=newCustomerDto();
//轉換方式的使用
customerDto.setDisable(booleanStrFormat.toStr(customer.getIsDisable()));
customerDto.setCustomerName(customer.getName());
customerDto.setId(customer.getId());

returncustomerDto;
}
}

要注意的是,如果使用了例如像spring這樣的環境,Mapper引入uses類實例的方式將是自動注入,那么這個類也應該納入Spring容器:

CustomerMapper.java指定使用spring

@Mapper(componentModel="spring",uses={BooleanStrFormat.class})
publicinterfaceCustomerMapper{

CustomerMapperINSTANCES=Mappers.getMapper(CustomerMapper.class);

@Mappings({
@Mapping(source="name",target="customerName"),
@Mapping(source="isDisable",target="disable")
})
CustomerDtotoCustomerDto(Customercustomer);
}

轉換類要加入Spring容器:

@Component
publicclassBooleanStrFormat{
publicStringtoStr(BooleanisDisable){
if(isDisable){
return"Y";
}else{
return"N";
}
}
publicBooleantoBoolean(Stringstr){
if(str.equals("Y")){
returntrue;
}else{
returnfalse;
}
}
}

MapStruct自動生成的類:

@Generated(
value="org.mapstruct.ap.MappingProcessor",
date="2019-02-14T1635+0800",
comments="version:1.3.0.Final,compiler:javac,environment:Java1.8.0_181(OracleCorporation)"
)
@Component
publicclassCustomerMapperImplimplementsCustomerMapper{

//使用自動注入的方式引入
@Autowired
privateBooleanStrFormatbooleanStrFormat;

@Override
publicCustomerDtotoCustomerDto(Customercustomer){
if(customer==null){
returnnull;
}

CustomerDtocustomerDto=newCustomerDto();

customerDto.setDisable(booleanStrFormat.toStr(customer.getIsDisable()));
customerDto.setCustomerName(customer.getName());
customerDto.setId(customer.getId());

returncustomerDto;
}
}

原文標題:實體映射最強工具類:MapStruct 真香!

文章出處:【微信公眾號:Android編程精選】歡迎添加關注!文章轉載請注明出處。

審核編輯:湯梓紅
聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • 數據傳輸
    +關注

    關注

    9

    文章

    2005

    瀏覽量

    65755
  • JAVA
    +關注

    關注

    20

    文章

    2986

    瀏覽量

    107037
  • User
    +關注

    關注

    1

    文章

    27

    瀏覽量

    11026

原文標題:實體映射最強工具類:MapStruct 真香!

文章出處:【微信號:AndroidPush,微信公眾號:Android編程精選】歡迎添加關注!文章轉載請注明出處。

收藏 人收藏

    評論

    相關推薦
    熱點推薦

    音頻子系統主要是用來做什么的,可以用來做PCM編碼器嗎?

    請問,音頻子系統主要是用來做什么的,可以用來做PCM編碼器嗎?支持PCM編碼輸出嗎?
    發表于 11-07 07:38

    請問培訓生是做什么的

    技術員培訓生工程師培訓生這些職位是做什么的·····以后怎么發展······
    發表于 02-18 01:24

    請問IIO軟件是做什么的

    IIO軟件是做什么的?剛接觸AD9361,SD卡中的系統帶的軟件,可我看了半天,不知道具體該怎么設置波形,還有設置好的波形是輸出波形,還是輸入波形啊?
    發表于 08-03 06:58

    請問sot-223封裝的第四管腳是用來做什么的

    sot-223的第四管腳是用來做什么的?上面標有TAB IS VOUT或是TAB IS GND是什么意思?
    發表于 09-25 11:35

    bootloader程序是用來做什么的?與startup程序有區別么?

    想請教一個問題,MCU中的bootloader程序是做什么的?與在KEIL中寫的startup程序有區別么?另外ISP升級又與bootloader有什么關系?求大俠賜教
    發表于 01-08 10:55

    Native是用來做什么的

    PDK中的mos管類型中的Native是用來做什么的
    發表于 01-18 06:46

    存儲器是用來做什么的?系統總線是什么

    存儲器是用來做什么的?系統總線是什么?有何功能?CPU中央處理器是什么?有何功能?
    發表于 01-21 07:24

    RK3399Pro開發板是用來做什么的

    RK3399Pro開發板是用來做什么的?RK3399Pro開發板報考哪些組成部分呢?有何應用?
    發表于 02-15 07:55

    sot-223的第四管腳是用來做什么的

    sot-223的第四管腳是用來做什么的? 上面標有TAB IS VOUT或是TAB IS GND是什么意思?
    發表于 11-22 07:25

    半導體公司是做什么的

    半導體指常溫下導電性能介于導體與絕緣體之間的材料。半導體在收音機、電視機以及測溫上有著廣泛的應用。如二極管就是采用半導體制作的器件。本文主要詳細介紹了半導體公司是做什么的
    的頭像 發表于 09-27 11:10 ?4.1w次閱讀

    程序員到底是做什么的

    很多人問程序員是是做什么的?或者問IT是做什么的?對于非IT行業的人很難有時間慢慢解釋清楚,下面我結合自己的理解談一談吧。
    的頭像 發表于 02-12 16:17 ?9719次閱讀

    Mirru 應用是用來做什么的 為什么要使用手部追蹤

    Mirru 應用是用來做什么的? Mirru 是一款正在開發中的免費開源 Android 應用,可以通過追蹤手部 (Hand Tracking) 來控制機械手。通過這款應用,用戶可以將其真手的抓握
    的頭像 發表于 08-12 15:04 ?2152次閱讀

    鈮酸鋰是用來做什么的

    歡迎大家來到小K的實驗室。本期小K的實驗室迎來了一位叫鈮酸鋰的客人。 你聽說過鈮酸鋰嗎? 你知道鈮酸鋰是用來做什么的嗎? 你知道鈮酸鋰能讓你成為人生贏家嗎? 且聽小K給您好好介紹這位“客人”。 小K
    的頭像 發表于 03-19 10:40 ?7066次閱讀

    ip地址是做什么的

    如果你現在正在看我的這篇文章,那說明你已經連接上了互聯網。說到互聯網,你一定聽說 ip 地址這個概念,你知道 ip 地址是做什么的嗎?與之而來的還有公網 ip ,私網 ip ,你知道有什么區別嗎?
    的頭像 發表于 09-16 10:03 ?3528次閱讀

    總線是用來做什么的

    昨天一位網友表示自己搞不懂總線是做什么的,網上的標準答案也晦澀難懂,讓我用比較通俗的話來解釋一下,下面我用例子說明說明。 我們知道,汽車上有很多的電子設備,它們就是通過總線連接的。總線,是一條公共
    的頭像 發表于 04-05 14:05 ?1146次閱讀
    主站蜘蛛池模板: 91大神在线视频观看 | 日韩电影天堂网 | 1024手机免费看片 | 成人久久久精品乱码一区二区三区 | 好男人午夜 | 女bbbbxxxx另类亚洲 | 国产色网站| riav久久中文一区二区 | 亚洲乱码尤物193yw在线播放 | 超黄视频网站 | 乱人伦精品一区二区 | 综合色图| 欧美日韩一级视频 | aaaa欧美高清免费 | 欧美一级特黄aa大片 | 色婷婷精品视频 | 一级免费视频 | 国产成人1024精品免费 | 四虎成人欧美精品在永久在线 | 干人人| 四虎国产精品永久免费网址 | 久久99国产精品免费观看 | 一区视频在线播放 | 依人成人 | 成人永久免费视频网站在线观看 | 一夜七次郎久久综合伊人 | 日本黄视频网站 | 国产色婷婷精品综合在线手机播放 | 久热首页| 亚洲精品香蕉婷婷在线观看 | 性夜影院午夜看片 | 轻点太大了好深好爽h文 | 韩国a级床戏大尺度在线观看 | 欧洲国产精品精华液 | 国产美女一区 | 女张腿男人桶羞羞漫画 | 免费一级黄 | 日韩成人黄色 | 国产美女主播一级成人毛片 | 天堂网2021天堂手机版 | 在线欧美成人 |