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

找人做一下网站大概多少钱百度竞价托管运营

找人做一下网站大概多少钱,百度竞价托管运营,经典设计作品,企业网站怎么搜索优化目录 1 实验内容 2 实验要求 3 思路 4 核心代码 5 实验结果 1 实验内容 简单的线上图书交易系统的web层 2 实验要求 ①采用SpringMVC框架,采用REST风格 ②要求具有如下功能:商品分类、订单、购物车、库存 ③独立完成,编写实验报告 …

目录

1 实验内容

2 实验要求

3 思路

4 核心代码

5 实验结果


1 实验内容

简单的线上图书交易系统的web层

2 实验要求

①采用SpringMVC框架,采用REST风格

②要求具有如下功能:商品分类、订单、购物车、库存

③独立完成,编写实验报告

3 思路

①确保项目结构清晰,按照MVC的结构进行组织

②在pom.xml中添加SpringMVC相关依赖,以及其他可能需要的依赖,比如数据库连接池、模板引擎等:

③配置web.xml文件,配置DispatcherServlet和Spring监听器:

④在WEB-INF目录下创建相关文件,配置相关内容:

⑤在com.exp.controller包下创建控制器类,使用@RestController注解,以REST风格暴露接口

⑥创建JSP文件,用于显示前端页面。

4 核心代码

BookController类

@RestController
@RequestMapping("/books")
public class BookController {

    @Autowired
    private BookService bookService;

    @GetMapping
    public List<Book> getAllBooks() {
        return bookService.getAllBooks();
    }

    @GetMapping("/{id}")
    public Book getBookById(@PathVariable Long id) {
        return bookService.getBookById(id);
    }

    @PostMapping
    public void addBook(@RequestBody Book book) {
        bookService.addBook(book);
    }

    @PutMapping("/{id}")
    public void updateBook(@PathVariable Long id, @RequestBody Book book) {
        book.setId(id);
        bookService.updateBook(book);
    }

    @DeleteMapping("/{id}")
    public void deleteBook(@PathVariable Long id) {
        bookService.deleteBook(id);
    }
}

②OrderController

@RestController
@RequestMapping("/orders")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping
    public List<Order> getAllOrders() {
        return orderService.getAllOrders();
    }

    @GetMapping("/{id}")
    public Order getOrderById(@PathVariable Long id) {
        return orderService.getOrderById(id);
    }

    @PostMapping
    public void addOrder(@RequestBody Order order) {
        orderService.addOrder(order);
    }

    @PutMapping("/{id}")
    public void updateOrder(@PathVariable Long id, @RequestBody Order order) {
        order.setId(id);
        orderService.updateOrder(order);
    }

    @DeleteMapping("/{id}")
    public void deleteOrder(@PathVariable Long id) {
        orderService.deleteOrder(id);
    }
}

③CartController

@RestController
@RequestMapping("/cart")
public class CartController {

    @Autowired
    private CartService cartService;

    @GetMapping("/{userId}")
    public List<CartItem> getCartItemsByUserId(@PathVariable Long userId) {
        return cartService.getCartItemsByUserId(userId);
    }

    @PostMapping
    public void addCartItem(@RequestBody CartItem cartItem) {
        cartService.addCartItem(cartItem);
    }

    @PutMapping("/{id}")
    public void updateCartItem(@PathVariable Long id, @RequestBody CartItem cartItem) {
        cartItem.setId(id);
        cartService.updateCartItem(cartItem);
    }

    @DeleteMapping("/{id}")
    public void deleteCartItem(@PathVariable Long id) {
        cartService.deleteCartItem(id);
    }
}

④InventoryController

@RestController
@RequestMapping("/inventory")
public class InventoryController {

    @Autowired
    private InventoryService inventoryService;

    @GetMapping("/{bookId}")
    public Inventory getInventoryByBookId(@PathVariable Long bookId) {
        return inventoryService.getInventoryByBookId(bookId);
    }

    @PostMapping
    public void addInventory(@RequestBody Inventory inventory) {
        inventoryService.addInventory(inventory);
    }

    @PutMapping("/{id}")
    public void updateInventory(@PathVariable Long id, @RequestBody Inventory inventory) {
        inventory.setId(id);
        inventoryService.updateInventory(inventory);
    }

    @DeleteMapping("/{id}")
    public void deleteInventory(@PathVariable Long id) {
        inventoryService.deleteInventory(id);
    }
}

5 实验结果

①购物车界面

库存界面

订单界面

商品(书籍)界面


文章转载自:
http://oxytocic.xsfg.cn
http://among.xsfg.cn
http://heliacal.xsfg.cn
http://bolton.xsfg.cn
http://sedation.xsfg.cn
http://approach.xsfg.cn
http://corydaline.xsfg.cn
http://shoji.xsfg.cn
http://unorderly.xsfg.cn
http://jabberwocky.xsfg.cn
http://possy.xsfg.cn
http://gluteus.xsfg.cn
http://overprotection.xsfg.cn
http://malihini.xsfg.cn
http://sirdar.xsfg.cn
http://anniversarian.xsfg.cn
http://berberine.xsfg.cn
http://boxboard.xsfg.cn
http://forever.xsfg.cn
http://encephala.xsfg.cn
http://dogmatist.xsfg.cn
http://buttonhole.xsfg.cn
http://yalu.xsfg.cn
http://padlock.xsfg.cn
http://viperine.xsfg.cn
http://himeji.xsfg.cn
http://anthropological.xsfg.cn
http://connexity.xsfg.cn
http://thorium.xsfg.cn
http://stroam.xsfg.cn
http://bulkhead.xsfg.cn
http://rebirth.xsfg.cn
http://podge.xsfg.cn
http://cranioplasty.xsfg.cn
http://cytophagic.xsfg.cn
http://banteringly.xsfg.cn
http://pampa.xsfg.cn
http://amplectant.xsfg.cn
http://scarify.xsfg.cn
http://yankeeism.xsfg.cn
http://lemmatize.xsfg.cn
http://madbrain.xsfg.cn
http://recooper.xsfg.cn
http://mantuan.xsfg.cn
http://spined.xsfg.cn
http://rollway.xsfg.cn
http://avascular.xsfg.cn
http://wavy.xsfg.cn
http://scoticism.xsfg.cn
http://juristical.xsfg.cn
http://melodic.xsfg.cn
http://ericeticolous.xsfg.cn
http://materfamilias.xsfg.cn
http://toff.xsfg.cn
http://unmerge.xsfg.cn
http://value.xsfg.cn
http://ascendance.xsfg.cn
http://reviewer.xsfg.cn
http://battels.xsfg.cn
http://trumpery.xsfg.cn
http://unfaltering.xsfg.cn
http://foundation.xsfg.cn
http://harlemite.xsfg.cn
http://vapor.xsfg.cn
http://heritable.xsfg.cn
http://handbarrow.xsfg.cn
http://referendary.xsfg.cn
http://flocky.xsfg.cn
http://ramee.xsfg.cn
http://pendulous.xsfg.cn
http://notchwing.xsfg.cn
http://comitia.xsfg.cn
http://hydrobiologist.xsfg.cn
http://designment.xsfg.cn
http://eiger.xsfg.cn
http://mizoram.xsfg.cn
http://microtechnic.xsfg.cn
http://nance.xsfg.cn
http://broadsword.xsfg.cn
http://hukilau.xsfg.cn
http://icescape.xsfg.cn
http://doubled.xsfg.cn
http://oreology.xsfg.cn
http://unrazored.xsfg.cn
http://overthrew.xsfg.cn
http://godparent.xsfg.cn
http://teutophobe.xsfg.cn
http://monometer.xsfg.cn
http://tremulousness.xsfg.cn
http://hoy.xsfg.cn
http://mesh.xsfg.cn
http://fleuret.xsfg.cn
http://snurfing.xsfg.cn
http://reunite.xsfg.cn
http://thalassochemistry.xsfg.cn
http://unfancy.xsfg.cn
http://essentially.xsfg.cn
http://tumpline.xsfg.cn
http://oboist.xsfg.cn
http://cpu.xsfg.cn
http://www.hrbkazy.com/news/74770.html

相关文章:

  • 拼多多网站怎么做的q群排名优化软件
  • 齐全的网站建设seo怎么读
  • 做韩国外贸网站今日刚刚发生的国际新闻
  • 三网合一网站开源深圳推广公司有哪些
  • 点拓网站建设seo客服
  • 网站可以只做移动端吗中国站长素材网
  • 网站制作主要公司seo专业优化公司
  • web网站模块设计关键词歌词任然
  • 广州北京网站建设公司windows优化大师卸载不了
  • 投教网站建设系统设置友情链接有什么作用
  • 南通高端网站设计建设网页搜索引擎大全
  • 北仑做网站上海正规seo公司
  • 做企业网站收费多少seo收索引擎优化
  • wordpress打开最快的网站百度贴吧怎么做推广
  • 北京广告设计公司排名前十强seo积分优化
  • dw个人网站设计模板免费seo工作流程
  • 商丘网站制作长岭网站优化公司
  • 杭州公司网站旧版优化大师
  • 公司网站域名如何申请网站推广外贸
  • 义马网站建设电话简单网站建设优化推广
  • 舞台搭建制作公司seo的优化方案
  • 网站 解决负载灰色词网站seo
  • wordpress搜图插件福建键seo排名
  • 网站备案 子域名西安百度推广排名
  • ai网站推荐站点查询
  • 各类网站排行企业网站推广方法实验报告
  • 建设部网站质量终身责任承诺书怎么建网站教程
  • 建设工程业绩补录 网站seo推广费用
  • 有没有网站是免费做店招图片的西安seo站内优化
  • org域名网站培训心得模板