Ignore:
Timestamp:
01/04/23 02:49:26 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
ab952ab
Parents:
6832924
Message:

Configured spring security, changed spring version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/controller/PartController.java

    r6832924 rae042f4  
    55import com.example.autopartz.service.PriceService;
    66import com.example.autopartz.service.RepairShopService;
    7 import jakarta.servlet.http.HttpServletResponse;
    87import org.springframework.stereotype.Controller;
    98import org.springframework.ui.Model;
    109import org.springframework.web.bind.annotation.*;
    1110
     11import javax.servlet.http.HttpServletResponse;
    1212import java.io.IOException;
    1313
     
    2424    }
    2525    @GetMapping("/{id}")
    26     public String getPartPage(@PathVariable Long id, Model model){
     26    public String getPartPage(@PathVariable Integer id, Model model){
    2727        Part temp = partService.findById(id);
    2828        Integer amount = priceService.findPriceForPart(temp).stream().findFirst().orElseThrow(RuntimeException::new).getAmount();
     
    3333    }
    3434    @GetMapping("/delivery/{id}")
    35     public String getDeliveryPage(@PathVariable Long id, Model model){
     35    public String getDeliveryPage(@PathVariable Integer id, Model model){
    3636        model.addAttribute("repairShops",repairShopService.findAll());
    3737        model.addAttribute("partId",id);
Note: See TracChangeset for help on using the changeset viewer.