当前位置: 首页 > news >正文

怎么用ps做网站效果图德阳seo

怎么用ps做网站效果图,德阳seo,广西建筑市场监管云平台桂建云,电商网站如何做精细化运营1.在idea中配置好数据源 2、视频案例中只给出了查询所有结果的示例,请自己完成添加、删除、修改操作的代码。以下供参 考。 Delete("delete from emp where id#{id}") public void delete(Integer id); 测试代码 Test public void testDelete(){ empMa…

1.在idea中配置好数据源

2、视频案例中只给出了查询所有结果的示例,请自己完成添加、删除、修改操作的代码。以下供参

考。

 @Delete("delete from emp where id=#{id}")

     public void delete(Integer id);

测试代码

 @Test

     public void testDelete(){

         empMapper.delete(17);

     }

@Insert("insert into emp(username, name, gender, image, job, entrydate, dept_id, create_time, update_time)" +

            "values (#{username},#{name},#{gender},#{image},#{job},#{entrydate},#{deptId},#{createTime},#{updateTime})")

public void insert(Emp emp);

测试代码

@Test

    public void testInsert(){

        Emp emp=new Emp();

        emp.setUsername("Tom");

        emp.setName("汤姆");

        emp.setImage("1.jpg");

        emp.setGender((short)1);

        emp.setJob((short)1);

        emp.setEntrydate(LocalDate.of(2000,1,1));

        emp.setCreateTime(LocalDateTime.now());

        emp.setUpdateTime(LocalDateTime.now());

        emp.setDeptId(1);

empMapper.insert(emp);

     }

@Update("update emp set username=#{username},name=#{name},gender=#{gender}," +

        "image=#{image},job=#{job},entrydate=#{entrydate},dept_id=#{deptId},update_time=#{updateTime} where id=#{id}")

public void update(Emp emp);

测试代码

 @Test

    public void testUpdate(){

        Emp emp=new Emp();

        emp.setId(17);

        emp.setUsername("Tom1");

        emp.setName("汤姆1");

        emp.setImage("1.jpg");

        emp.setGender((short)1);

        emp.setJob((short)1);

        emp.setEntrydate(LocalDate.of(2000,1,1));

        emp.setUpdateTime(LocalDateTime.now());

        emp.setDeptId(1);

        empMapper.update(emp);

    }

@Select("select * from emp where name like '%${name}%' and gender =#{gender} and " +

            "entrydate between #{begin} and #{end} order by update_time desc")

    public List<Emp> list(String name, Short gender, LocalDate begin,LocalDate end);

测试代码

 @Test

    public void testList(){

        empMapper.list("张",(short)1,LocalDate.of(2010,1,1),LocalDate.of(2020,1,1));

        System.out.println(empList);

    }

3、lombok库的使用。尝试将实体类采用注解的方式来实现。

import lombok.*;

//@Getter

//@Setter

//@ToString

//@EqualsAndHashCode

@Data

@NoArgsConstructor

@AllArgsConstructor

public class User {

    private Integer id;

    private String name;

    private Short age;

    private Short gender;

    private String phone;

4、学习idea的调试技巧,并尝试使用。

5、对以下案例使用mybatis进行添加、删除、修改、更新的操作。

@Mapper

public interface PoetMapper {

    @Delete("delete from poet where id=#{id}")

    public void delete(Integer id);

    @Insert("insert into poet(name,gender,dynasty,title,style)" +

            "values (#{name},#{gender},#{dynasty},#{title},#{style})")

    public void insert(Poet poet);

    @Update("update poet set name=#{name},gender=#{gender}," +

            "dynasty=#{dynasty},title=#{title},style=#{style} where id=#{id}")

    public void update(Poet poet);

}

测试代码

@SpringBootTest

class SpringbootMybatisCrudApplicationTests {

     @Autowired

     private PoetMapper poetMapper;

    @Test

    public void testInsert(){

        Poet poet=new Poet();

        poet.setName("汤姆");

        poet.setGender((short)1);

        poet.setDynasty("元代");

        poet.setTitle("诗词爱好者");

        poet.setStyle("无");

        poetMapper.insert(poet);

     }

    @Test

     public void testDelete(){

         poetMapper.delete(7);

     }

    @Test

    public void testUpdate(){

        Poet poet=new Poet();

        poet.setId(18);

        poet.setName("汤姆1");

        poet.setGender((short)1);

        poet.setDynasty("清代");

        poet.setTitle("无");

        poet.setStyle("无");

        poetMapper.update(poet);

    }

http://www.hkea.cn/news/384013/

相关文章:

  • 个体工商户是否能够做网站在线生成个人网站源码
  • 临沂高端网站建设厦门网站推广费用
  • 网站模版友链交易交易平台
  • 武汉做网站找谁百度导航是哪个国家的
  • wordpress互动游戏黄石seo诊断
  • 网页设计作品下载志鸿优化设计
  • 宾馆网站制作seminar是什么意思
  • 网站建设的进度表爱站查询工具
  • 深圳聘请做网站人员长春刚刚最新消息今天
  • 汽配人网做网站沈阳网站seo公司
  • 网站 短链接怎么做网站建设网站定制
  • 网站开发凭证做什么科目百度推广关键词多少合适
  • 网站正在建设 h5模板新闻热点
  • 龙岗公司网站建设怎么上百度搜索
  • 七米网站建设网站自动推广软件免费
  • 余姚公司做网站跨境电商怎么做
  • 顺义哪有做网站厂家百度快照在哪里找
  • 深圳南山网站建设重庆seo黄智
  • 教育微网站建设我要学电脑哪里有短期培训班
  • 民宿预订网站制作推广方案怎么做
  • 做网站都要掌握什么网页模版
  • 网站怎么做qq微信登陆长沙优化网站哪家公司好
  • 为什么上不了建设银行个人网站漳州网络推广
  • 天津手机网站建站培训代运营公司可靠吗
  • 网站制作的一般步骤长春网站优化平台
  • Python做网站 性能上海seo培训中心
  • 网上投诉平台公众号排名优化
  • 网页模板网站推荐媒体公关是做什么的
  • 泰安的网站建设公司爱站网域名查询
  • 台州椒江网站制作公司广告推销