Commit cb669152 authored by keita.onoguchi's avatar keita.onoguchi

修正

parent 67890228
package com.example.service;
import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -16,11 +15,7 @@ public class ShoesService {
ShoesRepository shoesRepository;
public List<Shoes> findAll(){
List<Shoes> list = shoesRepository. findAll();
//並べ替え処理
//Collections.sort(list, Collections.reverseOrder());
//並べ替えたものを返す。
return list;
return shoesRepository. findAll();
}
public Shoes findOne(Integer id){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment