전체 소스는 깃헙에 있습니다. @GetMapping("get") public ResponseEntity getLottoNum() throws JsonProcessingException { LottoRound save = null; //20200725 = 921 String url = "https://www.dhlottery.co.kr/common.do?method=getLottoNumber&drwNo=921"; UriComponents uriComponents = UriComponentsBuilder .fromHttpUrl(url) .build(); RestTemplate restTemplate = new RestTemplate(); HttpHeaders httpHeaders = new HttpHeade..
class Solution { public String solution(String s) { String answer = (s.length()%2==0)?s.substring(s.length()/2-1,s.length()/2+1) : s.substring(s.length()/2,s.length()/2+1); return answer; } } https://programmers.co.kr/learn/courses/30/lessons/12903
public class main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub justDoIt(); } private static void justDoIt() { int lottoNums[] = new int[6]; int nums[] = new int[45]; int n, temp, t; for(int i = 0; i < 45; i++) nums[i] = i + 1; for(int i = 0; i < 4444; i++) { n = (int) (Math.random() * 45); if(n == 0) continue; temp = nums[0]; nums[0] = nums[n..
사실 딱히 특별한 설정은 없고 Mybatis에서 제공하는 기능인듯 함. INSERT구문을 예로 들자면 insert into someTable(idx) VALUES('${@somePackage.someClass@someMethod(idx)}') 위처럼 사용 할 수 있다 '${@패키지명.클래스명@메소드명(파라미터)}' Mybatis에서 전송된 변수를 입력할 때 보편적으로 이용되는 #을 사용하지 않고 $로 구문을 열어야함. Mybatis #과 $의 차이 간단설명 : ->링크
- Total
- Today
- Yesterday
- 벤치멤버
- 자바
- 점심
- 스팀
- jenkins
- docker
- nba2k19
- 디비전2
- 디비전
- 수원
- java
- android
- 패드
- 이클립스
- 오라클
- 게임
- Spring
- NBA
- 유플레이
- 쿼리
- 엑스박스
- 킹스의킹
- 토이프로젝트
- 프로그래머스
- 새크라멘토킹스
- ec2
- AWS
- Oracle
- 스프링
- springboot
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |