일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 전자정부프레임워크
- iBATIS
- Ajax
- ibsheet
- Spring
- JDOM
- rowspan
- MySQL
- oracle
- 선택적조인
- JSON
- node.js
- sencha touch
- PHP
- appspresso
- Android
- 가우스
- jsr 296
- GPS
- jQuery
- phonegap
- Struts
- tomcat
- swingx
- MFC
- Eclipse
- WebLogic
- dock
- Google Map
- PLSQL
- Today
- Total
목록Developement/Java (204)
Where The Streets Have No Name
ant를 이용하면 현재 개발하는 eclipse project를 jar로 빌드하면서 참조하는 라이브러리를 하나로 합치는 기능이 있습니다. 공통모듈 copy-dependencies, jar 두개의 task로 작업이 가능하면 jar2는 이두개를 하나로 합친경우입니다. 참고 : https://mkyong.com/ant/ant-create-a-fat-jar-file/
로컬에서 junit상의 코드에서는 jersey client를 이용해서 통신에 문제가 없었으나 weblogic 12c에 올리자 에러발생 에러메세지를 확인해보니 weblogic에서 제공하는 httpurleconnection을 사용하면서 에러가 발생. deepakmodi2006.blogspot.com/2011/05/how-to-fix-javaioeofexception-response.html How to fix "java.io.EOFException: Response contained no data" How to fix "java.io.EOFException: Response contained no data" Some time while working in Weblogic server environment, ..
javax.net.ssl.SSLException: Certificate doesn't match any of the subject alternative names apache httpclient로 ssl을 연동한 연결을 하는 경우 위와 같은 에러가 발생합니다. SSLConnectionSocketFactory scsf = new SSLConnectionSocketFactory( SSLContexts.custom().loadTrustMaterial(null, new TrustSelfSignedStrategy()).build(), NoopHostnameVerifier.INSTANCE) httpclient = HttpClients.custom().setSSLSocketFactory(scsf).build() 버전..
package kr.co.ntcsoft.guava.service.demo; public class Daemon2 { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { MyGuavaService2 service = new MyGuavaService2(); service.startAndWait(); } } package kr.co.ntcsoft.guava.service.demo; import com.google.common.util.concurrent.AbstractExecutionThreadService; public class MyGuavaService2 extends Abstr..
package egovframework.rte.test.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; public class RequestInitializeInterceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws E..
package egovframework.rte.test.web; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.stereotype.Service; @Service public class Scheduler { @Scheduled(cron="*/10 * * * * *") public void job(){ System.out.println("@@@@@@@@@@@@@@@@@ - scheduler job"); } }
@RequestMapping("/sale/listExcelVOCategory.do") public ModelAndView selectCategoryVOList() throws Exception { List lists = new ArrayList(); UsersVO users = new UsersVO(); //Map mapCategory = new HashMap(); users.setId("0000000001"); users.setName("Sample Test"); users.setDescription("This is initial test data."); users.setUseYn("Y"); users.setRegUser("test"); lists.add(users); users.setId("00000..
@RequestMapping(value = "/test/Test3Json.do") public ModelAndView test3json(@RequestParam(value="name", required=false) String name) { JSONObject obj=new JSONObject(); obj.put("name","홍길동"); obj.put("num",new Integer(100)); obj.put("balance",new Double(1000.21)); obj.put("is_vip",new Boolean(true)); obj.put("nickname",null); ModelAndView model = new ModelAndView(new JsonView()); model.addObject(..
@RequestMapping(value = "/test/Test2Json.do") public void test2json(@RequestParam(value="name", required=false) String name, HttpServletResponse response) throws IOException{ System.out.println("name: "+name); JSONObject obj=new JSONObject(); obj.put("name","홍길동"); obj.put("num",new Integer(100)); obj.put("balance",new Double(1000.21)); obj.put("is_vip",new Boolean(true)); obj.put("nickname",nul..
package egovframework.rte.job; import java.text.SimpleDateFormat; import java.util.Date; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.scheduling.quartz.QuartzJobBean; import org.springframework.stereotype.Service; public class SayHelloJob extends QuartzJobBean { private String name; public void setName (String name) { this.name = name..
context-datasource.xml에서 datasource설정부분입니다.
import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class Demo2 { public static void main(String[] args) throws Exception { Document doc = Jsoup.connect("http://mlbpark.donga.com/mbs/articleL.php?mbsC=bullpen&cpage=1").get(); System.out.println(doc.title()); Elements els = doc.getElementsByClass("G12read"); Elements el..
출처 : http://javafreak.tistory.com/226 라이브러리 : http://commons.apache.org/compress/ import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.Charset; import java.util.Stack; import org.apache.commons.compress.archivers.zip.Zi..
http://edwin.baculsoft.com/2010/09/connecting-a-servlet-ibatis-and-glassfish-3/
우선 폴더 구성입니다 eclipse를 실행한후 server 뷰를 선택해서 glassfish관련 adapter를 설히한후 새로운 서버를 추가합니다. glassfish폴더를 지정합니다.
http://javaboutique.internet.com/tutorials/excep_struts/index-2.html http://stackoverflow.com/questions/2403194/struts-1-how-to-display-actionmessages http://sunhuili.springnote.com/pages/4757213
http://www.java2s.com/Code/Java/Database-SQL-JDBC/SerializedAndDeserializeObjectOracle.htm
mybatisConf.xml logMapper.xml select * from apache_log where seq = #{id} DBFactory.java package mybatis; import java.io.IOException; import java.io.Reader; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; public class DBFactory { private static DBFacto..