Commit 4cfc5454 authored by issei.miyajima's avatar issei.miyajima

サイマージ

parent 8035d0d0
package com.example.service;
import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -16,11 +15,12 @@ public class ShoesService {
ShoesRepository shoesRepository;
public List<Shoes> findAll(){
List<Shoes> list = shoesRepository. findAll();
//並べ替え処理
//Collections.sort(list, Collections.reverseOrder());
//並べ替えたものを返す。
return list;
// 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