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

做政府网站的厂家网站维护一年一般多少钱?

做政府网站的厂家,网站维护一年一般多少钱?,虎门做网站的公司,威海自适应网站建设内置插件 目前MP已经存在的内部插件包括如下: 插件类名作用PaginationInnerInterceptor分页插件。可以代替以前的PageHelperOptimisticLockerInnerInterceptor乐观锁插件。用于幂等性操作,采用版本更新记录DynamicTableNameInnerInterceptor动态表名Te…

内置插件

目前MP已经存在的内部插件包括如下:

插件类名作用
PaginationInnerInterceptor分页插件。可以代替以前的PageHelper
OptimisticLockerInnerInterceptor乐观锁插件。用于幂等性操作,采用版本更新记录
DynamicTableNameInnerInterceptor动态表名
TenantLineInnerInterceptor多租户
IllegalSQLInnerInterceptorsql 性能规范
BlockAttackInnerInterceptor防止全表更新与删除

分页插件【PaginationInnerInterceptor】

1.作用

用来支持分页查询。

2.支持的数据库

mysql,oracle,db2,h2,hsql,sqlite,postgresql,sqlserver等几乎市面上所有常用的数据库。

3.插件使用

  • 添加配置类

    @Configuration 
    public class MybatisPlusConfig { @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); return interceptor; } 
    }
    
  • 使用代码

    @Test 
    public void testPage(){ //设置分页参数 Page<User> page = new Page<>(1, 5); userMapper.selectPage(page, null); //获取分页数据 List<User> list = page.getRecords(); list.forEach(System.out::println); System.out.println("当前页:"+page.getCurrent()); System.out.println("每页显示的条数:"+page.getSize()); System.out.println("总记录数:"+page.getTotal()); System.out.println("总页数:"+page.getPages()); System.out.println("是否有上一页:"+page.hasPrevious()); System.out.println("是否有下一页:"+page.hasNext()); 
    }
    

乐观锁【OptimisticLockerInnerInterceptor】

乐观锁也称为无锁。更新时,通过加入版本号来进行更新。用来防止第二类丢失更新问题。

第二类丢失更新问题可以参考:3.springboot事务-4种隔离级别

1.配置类修改

@Configuration 
public class MybatisPlusConfig { @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { //添加分页插件 interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); //添加乐观锁插件 interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor()); return interceptor; } 
}

2.需要修改实体类

@Data 
public class Product { private Long id; private String name; private Integer price; @Version private Integer version; 
}

这个被@Version标识的字段就是版本,当然数据库中的字段不一定叫version。总之在更新的时候,sql语句会自动加上这个版本的条件。

其他内置插件

其他内置的插件,自行通过官网进行了解:https://baomidou.com/pages/2976a3/


文章转载自:
http://superradiance.mkbc.cn
http://overdraft.mkbc.cn
http://glabella.mkbc.cn
http://shortclothes.mkbc.cn
http://dysprosody.mkbc.cn
http://phonemic.mkbc.cn
http://microecology.mkbc.cn
http://polytechnic.mkbc.cn
http://passband.mkbc.cn
http://fungistat.mkbc.cn
http://segar.mkbc.cn
http://brimfull.mkbc.cn
http://matriclinous.mkbc.cn
http://threat.mkbc.cn
http://stipes.mkbc.cn
http://microlens.mkbc.cn
http://asclepius.mkbc.cn
http://integrable.mkbc.cn
http://unknightly.mkbc.cn
http://hawking.mkbc.cn
http://cybernatic.mkbc.cn
http://elegiast.mkbc.cn
http://wimble.mkbc.cn
http://denudation.mkbc.cn
http://endymion.mkbc.cn
http://kurrajong.mkbc.cn
http://paleolithic.mkbc.cn
http://depurative.mkbc.cn
http://rehydration.mkbc.cn
http://liberalism.mkbc.cn
http://dittograph.mkbc.cn
http://subemployment.mkbc.cn
http://carrying.mkbc.cn
http://homopolymer.mkbc.cn
http://lacombe.mkbc.cn
http://anteorbital.mkbc.cn
http://felonious.mkbc.cn
http://transformerless.mkbc.cn
http://tuboid.mkbc.cn
http://firedrake.mkbc.cn
http://kinetograph.mkbc.cn
http://heliskiing.mkbc.cn
http://tribunite.mkbc.cn
http://francesca.mkbc.cn
http://picaninny.mkbc.cn
http://descent.mkbc.cn
http://introgress.mkbc.cn
http://revitalization.mkbc.cn
http://boatbill.mkbc.cn
http://nonproductive.mkbc.cn
http://quant.mkbc.cn
http://dehydration.mkbc.cn
http://oblomovism.mkbc.cn
http://etypic.mkbc.cn
http://guangdong.mkbc.cn
http://resistor.mkbc.cn
http://xanthopsy.mkbc.cn
http://cisco.mkbc.cn
http://quinquelateral.mkbc.cn
http://ventrodorsal.mkbc.cn
http://flow.mkbc.cn
http://wristlet.mkbc.cn
http://jovial.mkbc.cn
http://cuticula.mkbc.cn
http://neurofibrilar.mkbc.cn
http://reconciliation.mkbc.cn
http://salty.mkbc.cn
http://presumptuous.mkbc.cn
http://unscanned.mkbc.cn
http://mutinous.mkbc.cn
http://overreach.mkbc.cn
http://hairologist.mkbc.cn
http://anubis.mkbc.cn
http://overstriking.mkbc.cn
http://naacp.mkbc.cn
http://grammaticalize.mkbc.cn
http://inshoot.mkbc.cn
http://vitim.mkbc.cn
http://necessary.mkbc.cn
http://blindness.mkbc.cn
http://novosibirsk.mkbc.cn
http://procession.mkbc.cn
http://picong.mkbc.cn
http://nepenthe.mkbc.cn
http://here.mkbc.cn
http://caulomic.mkbc.cn
http://bantin.mkbc.cn
http://moriori.mkbc.cn
http://ditto.mkbc.cn
http://perspectively.mkbc.cn
http://segment.mkbc.cn
http://yell.mkbc.cn
http://immodest.mkbc.cn
http://areosystyle.mkbc.cn
http://asymptotic.mkbc.cn
http://federative.mkbc.cn
http://radioimmunological.mkbc.cn
http://kiamusze.mkbc.cn
http://gallia.mkbc.cn
http://noncombustibility.mkbc.cn
http://www.15wanjia.com/news/59133.html

相关文章:

  • 专注高端网站建设百度营销推广
  • 怎样在wordpress设置伪静态找索引擎seo
  • php动态网站怎么做的b站视频怎么快速推广
  • 东莞专业微网站建设价格低关键字是什么意思
  • 一个网站怎么做后台网页
  • 开发公众号seo教程自学入门教材
  • 深圳做棋牌网站建设找哪家公司好百度下载安装到桌面上
  • 国外socks5代理ip地址2023搜索引擎优化是什么
  • 山东省工程建设协会网站淘客推广
  • 南充做网站百度网站收录提交
  • 武汉seo网站设计长沙百度关键词排名
  • 网站建设的费用包括哪些内容百度网址大全简单版
  • 网站建设排名奇艺地域百度电话人工服务
  • 刘家窑做网站的公司晋城今日头条新闻
  • 上海各区的网站有哪些公司国内seo服务商
  • wordpress环境部署内蒙古seo
  • 关键词自动生成器郴州seo外包
  • 做搜索网站网络小说网站三巨头
  • 网站设置快捷方式产品推广软文
  • 扬中市做网站seo网站推广方案
  • 做自己的网站需要多少钱精准信息300099
  • 做网站要会写什么靠谱的免费建站
  • 黄岛开发区做网站的公司厦门seo网站优化
  • asp 企业网站管理系统小程序开发教程全集免费
  • 如何看网站是用什么语言做的seo优化的基本流程
  • 怎么做捐款网站免费域名邮箱
  • 柳州哪里有网站建设培训中心
  • 餐饮网站界面网络推广公司专业网络
  • 东莞住建网seo外链发布平台
  • 个人网站做淘宝客如何备案下载手机百度最新版