第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
  • 哈哈哈哈哈哈哈??話嘿嘿??h

    查看全部
    0 采集 收起 來源:課程介紹

    2024-08-08

  • springBoot開發(fā)


    645fc1eb0001348006400360.jpg
    查看全部
  • <resultMap?id="Areas"?type="com.imooc.demo.entyti.Area">
    ????<id?column="area_id"?jdbcType="INTEGER"?property="areaId"?/>
    ????<result?column="area_name"?jdbcType="VARCHAR"?property="areaName"?/>
    ????<result?column="priority"?jdbcType="INTEGER"?property="priority"?/>
    ????<result?column="create_time"?jdbcType="DATE"?property="createTime"?/>
    ????<result?column="last_edit_time"?jdbcType="DATE"?property="lastEditTime"?/>
    </resultMap>
    ?<select?id="queryArea"?resultMap="Areas">
    ?SELECT
    area_id,
    area_name,
    priority,
    create_time,
    last_edit_time
    ?FROM
    ?td_area
    ?ORDER?BY
    priority?DESC
    ?????</select>

    ??? 綁定代碼,忽略下劃線改成大寫

    查看全部
  • server層為了復(fù)查dao層中的操作,與事務(wù)有關(guān)

    將增刪改查整合到一起

    查看全部
  • gitignore配置需要git管理的文件

    查看全部
  • test失??????????

    java.lang.IllegalStateException: Failed to load ApplicationContext

    查看全部
    0 采集 收起 來源:dao層開發(fā)

    2021-07-21

  • 我的

    查看全部
    0 采集 收起 來源:課程介紹

    2021-04-08

  • mybatis配置
    查看全部
    1 采集 收起 來源:pom的配置

    2021-04-08

  • 1111

    查看全部
    0 采集 收起 來源:課程介紹

    2021-04-06

  • 配置類

    查看全部
  • dataSource.return = return dataSource;

    查看全部
  • springboot項目,除了mybatis的配置,其他配置一般都不用xml。mybatis的配置也可用java類,但是xml的方式是主流。

    查看全部
  • @controllerAdvice統(tǒng)一異常處理

    查看全部
  • Junit單元測試

    查看全部
    0 采集 收起 來源:dao層開發(fā)

    2021-02-13

  • springboot集成mybatise,mapper.xml的編寫

    查看全部
    0 采集 收起 來源:mapper的編寫

    2021-02-13

  • MenuDao層:


    package?com.example.demo.dao;
    
    import?com.example.demo.bean.MainMenu;
    import?org.springframework.stereotype.Repository;
    
    import?java.util.List;
    
    @Repository
    public?interface?MenuDao?{
    ????public?List<MainMenu>?getMenus();
    }


    MenuController層:

    package?com.example.demo.logincontroller;
    
    import?com.alibaba.fastjson.JSON;
    import?com.example.demo.bean.MainMenu;
    import?com.example.demo.dao.MenuDao;
    import?org.springframework.beans.factory.annotation.Autowired;
    import?org.springframework.web.bind.annotation.RequestMapping;
    import?org.springframework.web.bind.annotation.RestController;
    
    import?java.util.HashMap;
    import?java.util.List;
    
    @RestController
    public?class?MenuController?{
    
    ????@Autowired
    ????MenuDao?menuDao;
    ????@RequestMapping(value="/menus")
    ????public?String?getAllMenus(){
    ????????System.out.println("訪問成功!??!");
    ????????HashMap<String,?Object>?data?=?new?HashMap<>();
    ????????List<MainMenu>?menus?=?menuDao.getMenus();
    ????????if?(menus?!=?null){
    ????????????data.put("menus",?menus);
    ????????????data.put("flag",?200);
    ????????}else{
    ????????????data.put("flag",?404);
    ????????}
    ????????String?s?=?JSON.toJSONString(data);
    ????????return?s;
    ????}
    }


    查看全部
    0 采集 收起 來源:課程介紹

    2020-12-08

  • MenuMainMapper。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="com.example.demo.dao.MenuDao">
    
    <!--????關(guān)系映射-->
    ????<resultMap?id="menuMap"?type="com.example.demo.bean.MainMenu">
    ????????<id?column="id"?property="id"></id>
    ????????<result?column="title"?property="title"></result>
    ????????<result?column="path"?property="path"></result>
    ????????<collection?property="sList"?ofType="com.example.demo.bean.SubMenu">
    ????????????<id?column="sid"?property="id"></id>
    ????????????<result?column="stitle"?property="title"></result>
    ????????????<result?column="spath"?property="path"></result>
    ????????</collection>
    ????</resultMap>
    ????<select?id="getMenus"?resultMap="menuMap">
    ????????select?mm.*,sm.id?as?sid?,sm.title?as?stitle?,sm.path?as?spath?from
    ????????vue_mainmenu?mm?,vue_submenu?sm?where?mm.id?=?mid;
    ????</select>
    </mapper>


    查看全部
    0 采集 收起 來源:課程介紹

    2020-12-08

  • Controller層:

    package?com.example.demo.logincontroller;
    
    import?com.alibaba.fastjson.JSON;
    import?com.example.demo.bean.UserName;
    import?com.example.demo.dao.UserNameDao;
    //import?jdk.nashorn.internal.parser.JSONParser;
    import?org.springframework.beans.factory.annotation.Autowired;
    import?org.springframework.web.bind.annotation.RequestBody;
    import?org.springframework.web.bind.annotation.RequestMapping;
    //import?org.springframework.web.bind.annotation.ResponseBody;
    import?org.springframework.web.bind.annotation.RestController;
    
    import?java.util.HashMap;
    
    @RestController
    public?class?LoginController?{
    ????@Autowired
    ????UserNameDao?userNameDao;
    
    ????@RequestMapping(value="/Login")
    ????public?String?login(@RequestBody?UserName?username){
    ????????String?flag?=?"error";
    ????????UserName?userName?=?userNameDao.getUserNameByMassage(username.getUsername(),?username.getPassword());
    ????????HashMap<String,?Object>?res?=?new?HashMap<>();
    ????????if(userName?!=?null){
    ????????????flag?=?"hello?world!!!";
    ????????}
    ????????res.put("flag",?flag);
    ????????res.put("username",?username);
    ????????String?res_json?=?JSON.toJSONString(res);
    //????????System.out.println(userName);
    ????????return?res_json;
    ????}
    }


    UserNameDao層:

    package?com.example.demo.dao;
    
    import?com.example.demo.bean.UserName;
    import?org.apache.ibatis.annotations.Param;
    import?org.springframework.stereotype.Repository;
    
    @Repository
    public?interface?UserNameDao?{
    ????public?UserName?getUserNameByMassage(@Param("username")?String?username,?@Param("password")?String?password);
    }

    解決跨域:

    package?com.example.demo.config;
    
    import?org.springframework.context.annotation.Configuration;
    import?org.springframework.web.servlet.config.annotation.CorsRegistry;
    import?org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
    
    /**
    ?*?解決跨域問題
    ?*/
    @Configuration
    public?class?Config?extends?WebMvcConfigurerAdapter?{
    
    ????@Override
    ????public?void?addCorsMappings(CorsRegistry?registry)?{
    ????????registry.addMapping("/**")
    ????????????????.allowedOrigins("*")
    ????????????????.allowedMethods("*")
    ????????????????.allowCredentials(true)
    ????????????????.maxAge(3600);
    ????}
    }

    實體層bean:

    package?com.example.demo.bean;
    
    public?class?UserName?{
    ????private?int?id;
    ????private?String?username;
    ????private?String?password;
    
    ????public?UserName(){
    
    ????}
    
    ????public?UserName(String?username,?String?password){
    ????????this.username?=?username;
    ????????this.password?=?password;
    ????}
    ????public?int?getId()?{
    ????????return?id;
    ????}
    
    ????public?void?setId(int?id)?{
    ????????this.id?=?id;
    ????}
    
    ????public?String?getUsername()?{
    ????????return?username;
    ????}
    
    ????public?void?setUsername(String?username)?{
    ????????this.username?=?username;
    ????}
    
    ????public?String?getPassword()?{
    ????????return?password;
    ????}
    
    ????public?void?setPassword(String?password)?{
    ????????this.password?=?password;
    ????}
    
    ????@Override
    ????public?String?toString()?{
    ????????return?"UserName{"?+
    ????????????????"id="?+?id?+
    ????????????????",?username='"?+?username?+?'\''?+
    ????????????????",?password='"?+?password?+?'\''?+
    ????????????????'}';
    ????}
    }


    查看全部
    0 采集 收起 來源:課程介紹

    2020-12-07

  • 草他個媽耶,真雞兒難

    查看全部
  • server-contentpath
    查看全部
  • server.port
    查看全部
  • ??formSubmit:function(e){

    ????var?that?=?this;

    ????var?formData?=?e.detail.value;

    ????var?url?=?that.data.addUrl;

    ????if(that.data.areaId?!=?undefined){

    ??????formData.areaId?=?that.data.areaId;

    ??????url?=?that.data.modifyUrl;

    ????}

    ????wx.request({

    ??????url:?url,

    ??????data:?JSON.stringify(formData),

    ??????method:"GET",

    ??????header:?{'Content-Type':'application/json'},

    ??????success:?function(res){

    ????????var?result?=?res.data.success;

    ????????var?toastText?=?"操作成功!";

    ????????if(result?!=?true){

    ??????????toastText?=?"操作失敗"+res.data.errMsg;

    ????????}

    ????????wx.showToast({

    ??????????title:?toastText,

    ????????})

    ??????}

    ????})

    ??}



    查看全部
  • operation.wxml

    查看全部
首頁上一頁1234567下一頁尾頁

舉報

0/150
提交
取消
課程須知
1、SpringBoot和Mybatis的非?;A(chǔ)的知識。 2、Jdk、Maven、Mysql、Intellij Idea的安裝與配置。 3、非常基礎(chǔ)的前端開發(fā)知識(HTML、Jquery)
老師告訴你能學(xué)到什么?
1、SpringBoot + Mybatis框架的搭建 2、單元測試 3、分層設(shè)計 4、微信小程序的基本知識及本地開發(fā) 5、前后分離及聯(lián)調(diào) 6、寫出健壯的程序

微信掃碼,參與3人拼團

微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復(fù)購買,感謝您對慕課網(wǎng)的支持!