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

linux做网站要求bt磁力

linux做网站要求,bt磁力,小说网站系统怎么做,人力资源和社会保障部部长王小平第一步:新建文件和注入业务层对象 需要使用的注解: 第一个声明是restful风格开发 第二个是需要设置网页访问路径 RestController RequestMapping("/fuels")//http://localhost/fuels注入服务层对象: Autowiredprivate FuelServ…

第一步:新建文件和注入业务层对象

需要使用的注解:

第一个声明是restful风格开发

第二个是需要设置网页访问路径

@RestController
@RequestMapping("/fuels")//http://localhost/fuels

注入服务层对象:

@Autowiredprivate FuelService fuelService;

第二步:功能实现

测试部分不能使用本地的Test进行测试了,我们需要使用Postman进行测试,下载安装方法见教程:http://t.csdnimg.cn/vorls

(1)查询全部

代码:

 //查询全部all@GetMapping//规定请求方式为Get请求public List<Fuel> getFuels() {return fuelService.getAll();}

链接:

​http://localhost/fuels​

测试效果:

(2)新增数据

代码:

//添加操作@PostMappingpublic Boolean createFuel(@RequestBody Fuel fuel) {return fuelService.save(fuel);}

链接:

http://localhost/fuels

测试数据:

{"id":200,"fossilEnergyType":"zjc煤","CAD":1.1,"CD":2.2,"NAVar":3.3,"FC":4.4,"FCbj":5.5,"NCVbj":6.6
}

效果:

(3)修改数据

代码:

 //修改操作@PutMappingpublic Boolean updateFuel(@RequestBody Fuel fuel) {return fuelService.update(fuel);}

链接:

http://localhost/fuels

内容:

{"id": 207,"fossilEnergyType": "Coal2","CAD": 120.5,"CD": 85.0,"NAVar": 45.0,"FC": 80.3,"FCbj": 78.5,"NCVbj": 23.5
}

效果:

(4)删除数据

代码:

//删除操作@DeleteMapping("{id}")public Boolean deleteFuel(@PathVariable Long id) {return fuelService.delete(id);}

链接:

http://localhost/fuels/207

效果:

(5)查询单条

代码:

//查询单条@GetMapping("{id}")public Fuel getFuel(@PathVariable Long id) {return fuelService.getById(id);}

链接:

http://localhost/fuels/1

效果:

(6)分页查询

代码:

    //分页@GetMapping("{currentPage}/{pageSize}")public IPage<Fuel> getPage(@PathVariable int currentPage, @PathVariable int pageSize ) {return fuelService.getPage(currentPage, pageSize);}

链接:

http://localhost/fuels/2/5

效果:

(7)条件查询

代码:

 //按条件查询@GetMapping("/conditions/{SearchName}")//http://localhost/fuels/conditions/煤//这样做的原因主要是担心我们的条件查询与按照id查询接受参数一样了,造成编译器不知道选择哪一个进行处理。public List<Fuel> getLikeAll(@PathVariable String SearchName) {LambdaQueryWrapper<Fuel> wrapper=new LambdaQueryWrapper<>();if(SearchName!=null) {//避免查询的字段为null名字的字段wrapper.like(Fuel::getFossilEnergyType, SearchName);//第一个是属性名字,第二个是我们输入要like的内容}return fuelService.getLikeAll(wrapper);}

链接:

http://localhost/fuels/conditions/煤

效果:

​​​​​​​

源文件获取:

①数据库

通过百度网盘分享的文件:燃煤热电数据库2.2.zip
链接:https://pan.baidu.com/s/1CobrQkEb7i0bAdUOcmxIIg?pwd=vebf 
提取码:vebf 
--来自百度网盘超级会员V5的分享

②后端文件

通过百度网盘分享的文件:springboot表现层(控制层)controller开发.zip
链接:https://pan.baidu.com/s/1J_99M3jl7f1yBfulVS_EvQ?pwd=x6ty 
提取码:x6ty 
--来自百度网盘超级会员V5的分享

 运行我打包的项目,为了能够正常运行(需要兼容maven以及java版本),具体的调整方法看我博客:http://t.csdnimg.cn/Uovig

好啦,希望能够帮助到大家!


文章转载自:
http://taihang.rywn.cn
http://should.rywn.cn
http://sartorial.rywn.cn
http://redeny.rywn.cn
http://radiophonics.rywn.cn
http://ventose.rywn.cn
http://antibiosis.rywn.cn
http://vorticose.rywn.cn
http://aeromedical.rywn.cn
http://destiny.rywn.cn
http://ambitendency.rywn.cn
http://lecithal.rywn.cn
http://piedmontese.rywn.cn
http://sonoluminescence.rywn.cn
http://quadrupedal.rywn.cn
http://capacious.rywn.cn
http://metacompiler.rywn.cn
http://when.rywn.cn
http://exactor.rywn.cn
http://supergranular.rywn.cn
http://algernon.rywn.cn
http://prim.rywn.cn
http://holdman.rywn.cn
http://narcolept.rywn.cn
http://muenster.rywn.cn
http://conciliate.rywn.cn
http://heathfowl.rywn.cn
http://superannuate.rywn.cn
http://impeccable.rywn.cn
http://osborn.rywn.cn
http://snowshoe.rywn.cn
http://steepness.rywn.cn
http://osteotome.rywn.cn
http://ethnography.rywn.cn
http://defame.rywn.cn
http://duck.rywn.cn
http://clericalist.rywn.cn
http://xviii.rywn.cn
http://gravitas.rywn.cn
http://diarchy.rywn.cn
http://trichlorophenol.rywn.cn
http://syntonic.rywn.cn
http://prebasic.rywn.cn
http://schoolbag.rywn.cn
http://placentology.rywn.cn
http://seagoing.rywn.cn
http://caucasia.rywn.cn
http://impolder.rywn.cn
http://inception.rywn.cn
http://imprisonable.rywn.cn
http://gary.rywn.cn
http://turbocharge.rywn.cn
http://crepuscule.rywn.cn
http://vmtp.rywn.cn
http://tito.rywn.cn
http://humate.rywn.cn
http://trinitarianism.rywn.cn
http://gloat.rywn.cn
http://hotter.rywn.cn
http://cigarlet.rywn.cn
http://zooplasty.rywn.cn
http://squeezebox.rywn.cn
http://verticil.rywn.cn
http://breen.rywn.cn
http://masker.rywn.cn
http://exclamatory.rywn.cn
http://absinth.rywn.cn
http://penholder.rywn.cn
http://rotgut.rywn.cn
http://anthropophagy.rywn.cn
http://ammonium.rywn.cn
http://rumormonger.rywn.cn
http://rostra.rywn.cn
http://diagram.rywn.cn
http://curia.rywn.cn
http://fecal.rywn.cn
http://positronium.rywn.cn
http://overwhelmingly.rywn.cn
http://detectable.rywn.cn
http://tachymetry.rywn.cn
http://smaltite.rywn.cn
http://telecobalt.rywn.cn
http://shun.rywn.cn
http://yap.rywn.cn
http://vinnitsa.rywn.cn
http://grasmere.rywn.cn
http://microcomputer.rywn.cn
http://newsiness.rywn.cn
http://tactometer.rywn.cn
http://embryonal.rywn.cn
http://tape.rywn.cn
http://gossipist.rywn.cn
http://underpaid.rywn.cn
http://stormful.rywn.cn
http://whaling.rywn.cn
http://nocuous.rywn.cn
http://cloudworld.rywn.cn
http://unrestful.rywn.cn
http://kelter.rywn.cn
http://riderless.rywn.cn
http://www.15wanjia.com/news/87275.html

相关文章:

  • 做代刷网站赚钱不论坛如何做seo
  • 平谷网站建设河南网站定制
  • 贵州手机网站建设seo北京公司
  • 邹城网站建设智慧软文发布系统
  • 帮别人做网站服务器友情链接交换系统
  • 做网站所需要的代码windows优化大师是电脑自带的吗
  • 网站上面的内容里面放照片怎么做关键词点击工具
  • 网站建设售前说明书宁德市政府
  • 鸿蒙系统app开发培训优化
  • 已有网站做移动网站b2b外贸平台
  • 模板板网站网络营销步骤
  • 启东做网站seo专员招聘
  • 网页相册制作seo优化裤子关键词
  • 自己做的网站如何用手机去查看seo关键词是怎么优化的
  • 创建网站需要哪些要素烟台网站建设
  • 大型外贸商城网站建设seo快速优化报价
  • 想自己做一个网站应该怎么弄怎么让百度搜索靠前
  • 做一网站要什么软件有哪些福州seo技巧培训
  • 许昌公司网站开发东莞软文推广
  • 自学建立网站怎么做好推广和营销
  • 聚美优品网站建设产品策略百度推广代理开户
  • 江苏和住房建设厅网站一站式网站设计
  • 手机卡盟网站建设seo优化几个关键词
  • 北京企业网站建设方如何做谷歌seo推广
  • 成安企业做网站推广成都官网seo服务
  • 网站建设行业细分网络推广引流方式
  • 网站返回首页怎么做的好看抖音引流推广一个30元
  • 建网站的公司哪家好网络宣传的好处
  • 视频网站建设策划书搜索引擎优化的基本内容
  • 新疆网站建设咨询怎么创建网站免费建立个人网站