일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- RDS
- 알고리즘
- jQuery
- AWS
- express
- HTML
- 웹게임
- node.js
- model1
- phaser
- 블록체인
- 배포
- Ajax
- tiles.xml
- 도커
- websocket
- JavaScript
- 비트코인
- autowired
- docker
- 웹소켓
- Servlet
- SQL
- Spring
- EC2
- JSP
- PL/SQL
- 암호화
- CSS
- Cookie
- Today
- Total
목록전체 (390)
記錄
일반적인 규칙 selector { property: value; property: value;} 외부 CSS연결 예제 Practice.htmlPractice CSS Hello world Practice apple orange banana Practice_css.cssh1{ color: red; } h2{ color: orange; } ul { color: blue; } 디자인(CSS위주) 참고 사이트 : http://www.csszengarden.com/
--1> 부서테이블의 모든 데이터를 출력하라.SELECT *FROM EMP --2> EMP테이블에서 각 사원의 직업, 사원번호, 이름, 입사일을 출력하라.SELECT JOB, EMPNO, ENAME, HIREDATEFROM EMP --3> EMP테이블에서 직업을 출력하되, 각 항목(ROW)가 중복되지 않게 출력하라.SELECT DISTINCT JOBFROM EMP --4> 급여가 2850 이상인 사원의 이름 및 급여를 표시하는 출력하라.SELECT ENAME, SALFROM EMPWHERE SAL >= 2850 --5> 사원번호가 7566인 사원의 이름 및 부서번호를 표시하는 출력하라.SELECT ENAME, DEPTNOFROM EMPWHERE EMPNO=7566 --6> 급여가 1500이상 ~ 2850..
/*[1일차 수업]1. 오라클 소프트웨어 다운로드>> http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html 2. 11g express 버전 (무료버전) 설차 3. 설치 (관리자 권한 : SYSTEM , SYS 계정 : 암호설정 >> 1004 4. sqlplus 기본 프로그램 접속확인 5. SqlDeveloper 무료툴을 설치 >> 유료툴 > 토드 , 오렌지 , sqlgate 6. Tool을 통해서 Oracle 접속 >> HR 계정 암호 1004 >> unlock >> BITUSER , 1004 >> 계정 생성 -- USER SQLCREATE USER bituser IDENTIF..
Ex 1) Insert title here $(document).ready(function() { $("#sdata").click(function() { var string = ["abc","def"]; var vParam = "test"; $.ajax({ url: "DataArray.jsp", type: "GET", data: {"string":string}, //jsp?string=abc&string=def&string=aaa success: function(data) { var as = eval(data); alert("data:"+as[0]+"/"+as[1]); }, error: function(msg, error) { alert(error); } }); });// end .click() }); ..
벤치 프레스 5 인클라인 5 백 팩 플라이 6 케이블 프레스 다운 로프 드롭 6 딱 1시간 일부러 짧게 끊었다. 앞으로 빠르게 1시간만 하고 큰 부위는 특히 확실히 챙기고 매일 가는 것을 목표로 한다. 매일은 힘들지 몰라도 이전보다 자주 갈 것이다. 시간 부담도 덜고 수면 시간도 챙긴다. 잠을 잘 자야한다. 또 아프면 안된다. 헬스장이 리뉴얼 되었다. 마음에 든다. 케이블 머신이 두 대가 되었고 백 팩 플라이도 한 대 더 생겼다. 시티드 로우 머신도 바뀌었고 랫 풀 다운 머신 중 하나 이상한 것이 좋은 것으로 바뀌었다. 시티드 해머 프레스가 새로 생겼다. 자극이 그닥 좋지 않았던 것 같은데 흠. 그간 아파서 이것저것 가리지 않고 먹었다. 근 2주간 헬스를 못갔고 식단도 대충 먹었다. 다시 열심히 운동 하..
org.springframework.web.contextInterface WebApplicationContext public interface WebApplicationContextextends ApplicationContext Interface to provide configuration for a web application. This is read-only while the application is running, but may be reloaded if the implementation supports this.This interface adds a getServletContext() method to the generic ApplicationContext interface, and define..
web.xml SpringMVC_Basic01_Controller index.html spring org.springframework.web.servlet.DispatcherServlet spring *.htm Class DispatcherServletpublic class DispatcherServletextends FrameworkServlet Central dispatcher for HTTP request handlers/controllers, e.g. for web UI controllers or HTTP-based remote service exporters. Dispatches to registered handlers for processing a web request, providing co..
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ 다 같은 그림인데 밑으로 내려올 수록 더 심화되고 자세한 흐름이다.기본적인 Spring MVC는 이 그림이 나타내는 flow가 전부라고 할 수 있다. ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ cf. Controller의 각 메소드에서 최종적으로 String값을 리턴하면서 클라이언트가 가도록 할 페이지를 넘길때 "redirect:"가 붙이는 이유? 내가 착각했던 부분은 Controller의 각 메소드가 return을 할 때 매핑된 .do 와 같은 처리 요청을 하면 다시 메소드로 갈 것이라고 생각했는데 잘못된 생각이었다. Controller에서 return을 하게 될 경우 view를 찾아 보내는 것을 피할 수 ..
bean에서 객체를 가져올 때 기본적으로 싱글톤 방식으로 객체를 가져온다. 즉, 아무리 여러번 객체를 가져와도 가져올 때마다 새로 생성하는 것이 아니라 하나의 동일한 객체를 가져오게 된다는 것이다. bean에서 객체를 가져올 때 기존처럼 싱글톤 방식으로 하나의 동일한 객체를 계속 가져오는 것이 아니라 getBean()으로 객체를 가져올 때마다(주입 받을 때마다) 객체를 새로 생성해서 새로운 객체를 가져오게 된다. 즉, getBean()을 통해 객체를 가져올 때(주입이 필요할 때)마다 새로운 객체가 필요하다면 scope="prototype"을 사용한다. 예제코드 public class Client implements InitializingBean , DisposableBean { public Client(..
예제코드 1 (기본) public class Client implements InitializingBean , DisposableBean { public Client() { System.out.println("Client Default"); } private String defaulthost; public Client(String defaulthost){ this.defaulthost = defaulthost; System.out.println("Client Overloading :" + this.defaulthost); } private String host; public String getHost() { return host; } public void setHost(String host) { this..
xml대신 Configcontext 을 "Spring 설정 파일"로 사용하는 방식이며 코드는 아래와 같다 /* Configcontext 을 [Spring 설정 파일]로 사용하겠다 (xml 파일 대체 하겠다) :객체 생성과 주입을 처리 하겠다 @Configuration (설정파일) @Bean (객체 생성) (함수 기반의 처리) xml 파일 이라면 Java 파일에서는 함수를 생성해서 객체 주소 리턴하는 형태 */ @Configuration //xml 생성public class Configcontext { @Bean public User user() { // return new User(); } @Bean public User2 user2() { // return new User2(); }} public cl..
public class Recorder { } public class MonitorViewer { private Recorder recorder; public Recorder getRecorder() { return recorder; } @Resource(name="yy") //id 값 또는 name 을 명시해서 특정 객체 주입 public void setRecorder(Recorder recorder) { this.recorder = recorder; System.out.println("setter 주입 성공"); }} public class Program { public static void main(String[] args) { /* JAVA 코드 방식 MonitorViewer viewer = ne..
public class Recorder { } public class MonitorViewer { private Recorder recorder; public Recorder getRecorder() { return recorder; } @Autowired @Qualifier("corder1") // public void setRecorder(Recorder recorder) { this.recorder = recorder; System.out.println("setter 주입 성공"); } @Autowired @Qualifier("corder2") // public void RecorderMethod(Recorder rec) { System.out.println("rec : " + rec); } } p..
.xml .javapublic class MonitorViewer { private Recorder recorder; public Recorder getRecorder() { return recorder; } // @Autowired가 선언됨으로써 // 해당 메소드에서 의존하고 있는 객체(구동을 위해 필요한 객체)를 // type으로 찾아서 이와 일치하는 객체를 bean 에서 찾아서 이곳에 injection하게 된다 @Autowired public void setRecorder(Recorder recorder) { this.recorder = recorder; }} public class Recorder { } public class Program { public static void main(Strin..
public class DataSourceFactory { private String jdbcDriver; private String jdbcUrl; private String username; private String password; public void setJdbcDriver(String jdbcDriver) { this.jdbcDriver = jdbcDriver; } public void setJdbcUrl(String jdbcUrl) { this.jdbcUrl = jdbcUrl; } public void setUsername(String username) { this.username = username; } public void setPassword(String password) { this..
192.168.0.26 20000 package DI_10_Spring; import java.util.Properties; public class BookClient { private Properties config; public void setConfig(Properties config) { this.config = config; } //일반함수 (출력) public void connect() { String server = config.getProperty("server"); String timeout = config.getProperty("connectiontimeout"); System.out.println("server : " + server); System.out.println("timeou..
public class Program { public static void main(String[] args) { /* ProtocolHandler handler = new ProtocolHandler(); ArrayList arraylist = new ArrayList(); arraylist.add(new EncFilter()); arraylist.add(new HeaderFilter()); arraylist.add(new ZipFilter()); handler.setFilters(arraylist); */ ApplicationContext context = new GenericXmlApplicationContext("classpath:DI_07_Spring/DI_07.xml"); ProtocolHan..
public interface ProtocolHandler {} public class RestHandler implements ProtocolHandler {} public class RssHandler implements ProtocolHandler {} public class ProtocolHandlerFactory { //Map(key , value) private Map handlers; public void setHandlers(Map handlers) { this.handlers = handlers; System.out.println("setter 주입 성공 : " + this.handlers); }} public class Program { public static void main(Str..
public class JobExecute { public JobExecute(String first , int second) { System.out.println("String,int"); } public JobExecute(String first , long second) { System.out.println("String,long"); } public JobExecute(String first , String second) { System.out.println("String,String"); } private ArticleDao articledao; public ArticleDao getArticledao() { return articledao; } public void setArticledao(A..
ApplicationContext context = new GenericXmlApplicationContext("classpath:DI_05_Spring/DI_05.xml"); System.out.println("before : mybean객체");MyBean mybean = context.getBean("mybean",MyBean.class);System.out.println("after : mybean객체 : " + mybean); System.out.println("before : mybean2객체");MyBean mybean2 = context.getBean("mybean",MyBean.class);System.out.println("after : mybean2객체 : " + mybean2); /..
colspan a b c colspan 예시 rowspan a b c d rowspan 예시 출처: http://webberstudy.com/html-css/html-2/table-basic-structure/ thead, tbody, tfoot의 존재 이유 thead, tbody, tfoot이 없어도 원하는 표를 잘 만들 수 있다. 그렇다면 왜 이 세 가지 태그들이 존재하는 것일까? 몰라서 okky에 질문을 올렸다. 답변으로는 크게 두 가지 의견이 나왔는데 나중에 javascript로 제어하고 싶을때 이를 특정하기 위해서 파트별로 태그로 구분해 두는 것이라는 의견과 시맨틱 웹 관점에서 구조적인 html 일 수록 검색에서 더 잘 걸리기 때문이라는 답변이 있었다.(참고 : https://okky.kr/ar..
vs 닷 형태가 ul이고 숫자로 순차적으로 나오는 것(1, 2, 3..) ol이다. 약자를 보면 쉽다. 내가 막써오던 ul은 unordered list 였다. 정렬되지 않은 리스트이므로 닷 으로 구분되는 것이었다. 반면 ol은 ordered list로 정렬된 리스트이기 때문에 숫자로 구분되는 것이다. vs HTML문서를 작성할 때 가장 많이 표현하게 되는 양식이 글자를 굵게하는 것입니다. 그리고 이 문제를 해결하기 위해서 요소를 너무나 당연하게, 그리고 쉽게 사용합니다. 하지만 웹접근성을 높이고자 한다면, 웹표준을 이해하고 준수하고자 한다면 요소보다는 요소가 좋습니다. 요소는 의미적으로 강조를 가리킵니다. 반면에 요소는 문자열을 단순히 굵게 표시하여 표현하는데 목적을 둡니다. 표현상으로 두 요소의 차이는..
HTML The HTML element provides general information (metadata) about the document, including its title and links to its scripts and style sheets. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head 막 써왔던 head의 본래 존재 목적이 잘 정리되어 있어서 발췌했다. 역시 알고 쓰는 것과 모르고 쓰는 것은 깊이가 다르다. HTML The HTML Element represents the content of an HTML document. There can be only one element in a document. https://d..
public class boarddao { static DataSource ds; Connection conn; PreparedStatement pstmt; ResultSet rs; static { InitialContext ctx; try { ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup("java:comp/env"); ds = (DataSource) envCtx.lookup("/jdbc/oracle"); } catch (NamingException e) { System.out.println("lookup Fail : " + e.getMessage()); } } // 이제 각 함수에서 conn = ds.getConnection();..
벤치 프레스 프리 7 팩 백 플라이 드롭 5 케이블 크로스 오버 6 바벨로우 프리 6 랫 풀 다운 6 이지바 컬 5 케이블 프레스 다운 로프 5 1시간 40분 열심히 했다중량을 의도적으로 조금씩 늘려갈 필요가 있는 것 같다
빨리 오면 두 가지 중 정해라 일찍 자거나 운동 가거나 오늘도 배운다
바벨로우 프리 7 ㅡ 이따 포스팅 느낀점 하이풀리 드롭 5 랫 풀 다운 6 케이블 크로스 오버 7 ㅡ 이따 포스팅 느낀점 이지바 컬 5 1시간 40분 식단. 몸무게변화등 이따 집에서 포스팅 고치기
$(function() { var date = new Date(); var currentMonth = date.getMonth(); var currentDate = date.getDate(); var currentYear = date.getFullYear(); $('#datepicker').datepicker({ minDate: new Date(currentYear, currentMonth, currentDate), dateFormat: 'yy-mm-dd' }); }); 맨 앞에서 스크립트 코드를 저렇게 처리하면 '2018-04-14' 형식으로 변경됨
바벨로우 프리 5 랫 풀 다운 5 이지바 컬 5 플랫 벤치 프레스 7 케이블 크로스 오버 5 팩 백 플라이 드롭 5 케이블 프레스 다운 로프 드롭 5 1시간 30분 무척 오랜만에 해서 아주 행복했다.일요일이 지나면 이제 다시 주 3회를 할 수 있을 것 같다. 어제 헬스장에서 많은 것을 느꼈다.역시 자신감과 몸매는 중요하다. 바벨로우에서 내가 바벨을 앞쪽으로 떨어트리는 느낌을 받았다. 허벅지 바로 위로 당기듯 해야 제대로 자극이 되는 것 같은데조금 가슴팍 쪽으로 하니까 허리도 굽는 것 같고 팔로 당기는 것 같았다. 이렇게 조금씩 찾아가는 거지. 하체랑 어깨를 너무 못했다. 그간 바쁘다는 핑계로 많이 못했다. 일요일이나 월요일부터 시작해야 한다. 몸이 크려면 하체가 중요한 것 같은데 참 눈 앞의 것에 현혹되..