You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
Java
39 lines
1.0 KiB
Java
package cokr.xit.ens.modules;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import cokr.xit.ens.core.code.CodeMapperFactory;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@Slf4j
|
|
@Controller
|
|
@RequiredArgsConstructor
|
|
public class IndexController {
|
|
|
|
private final CodeMapperFactory codeMapperFactory;
|
|
|
|
@GetMapping("/")
|
|
public String index() {
|
|
// log.info("Welcome to the world!!");
|
|
// codeMapperFactory.get(SampleCd.class).forEach((row) -> System.out.println(row.getCode()+"="+row.getCodeNm()));
|
|
// Queue<Integer> q = new LinkedList<Integer>();
|
|
// for(int i=1; i<=100; i++) {
|
|
// q.offer(i);
|
|
// if(i%10==0)
|
|
// System.out.println(String.format("poll => %d", q.poll()));
|
|
// }
|
|
// q.forEach(i -> System.out.println("value => "+i));
|
|
// for(int i=101; i<=200; i++) {
|
|
// q.offer(i);
|
|
// if(i%10==0)
|
|
// System.out.println(String.format("poll => %d", q.poll()));
|
|
// }
|
|
// q.forEach(i -> System.out.println("value => "+i));
|
|
|
|
return "index";
|
|
}
|
|
|
|
}
|