public Map mailMdn(Map mailMap, List messageIdList) throws Exception{ Map resultMap=new HashMap();Properties props=new Properties();props.put("mail.store.protocol","imap");props.put("mail.imap.host",host);props.put("mail.imap.port",port);props.put("mail.imap.auth.plain.disable","true");Session session=Session.getDefaultInstance(props);session.setDebug(true);Store store=session.getStore("imap");S..
public Map mailImap(Map mailMap,List fileList,List imgList) throws Exception{ Map resultMap=new HashMap();Properties props=new Properties();props.put("mail.store.protocol","imap");props.put("mail.imap.host",host);props.put("mail.imap.port",port);props.put("mail.imap.auth.plain.disable","true");Session session=Session.getDefaultInstance(props);session.setDebug(true);Store store=session.getStore("..
@Autowired@Qualifier("mailSender")private JavaMailSender webMailSender; public Map sendMail(Map mailMap,List fileList,List imgList) throws Exception{ Map resultMap=new HashMap();MimeMessage msg=this.webMailSender.createMimeMessage();MimeMessageHelper message=new MimeMessageHelper(msg,true,"UTF-8");message.setFrom(mailMap.get("SENDER_MAIL").toString());String rece[]=mailInfoMap.get("RECE_MAIL").t..
public static String getOnlyDigit(String str){StringBuffer sb=new StringBuffer();if(str!=null && str.length()!=0){Pattern p = Pattern.complie("[0-9]");Matcher m = p.matcher(str);while(m.find()){sb.append(m.group());}}return sb.toString();} 한글만은 Pattern p = Pattern.complie("[가-힣]");
public static boolean createZipFile(String sourceFile, String createZip) throws IOException{boolean result=true;byte[] buf=new byte[1024];try{ZipOutputStream zipOut=new ZipOutputStream(new FileOutputStream(createZip));File inFile=new File(sourceFile);FileInputStream in=new FileInputStream(inFile);zipOut.putNextEntry(new ZipEntry(inFile.getName()));int len;while((len=in.read(buf))>0){zipOut.write..
String url="http://aaa.com/aa.asp?userId=aaa";URL url1=new URL(url);HttpsURLConnection conn=(HttpsURLConnection)url1.openConnection();conn.setHostnameVerifier(new HostnameVerifier(){@Overridepublic boolen verify(String arg0, SSLSession arg1){return true;}});SSLContext sslContext=SSLContext.getInstance("TLS")sslContext.init(null,new TruestManager[]{new X509TrustManager(){@Overridepublic X509cerif..
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0'defined in file -> 이클립스 Problems 탭을 확인해보자. 이게 짱인 것 같다. Console 탭의 에러 메시지만 봐서는 해결되지 않을 때, 무조건 Problems 탭을 확인해보자! ㅠㅠ 여기 다 나온다.... The projec was not built due to "Resource '/test/test' already exists.". Fix the problem, then try refreshing this project and buil..
package test; import java.util.Base64;import java.util.Base64.Decoder;import java.util.Base64.Encoder; import javax.crypto.Cipher;import javax.crypto.spec.IvParameterSpec;import javax.crypto.spec.SecretKeySpec; public class AESTest2 { public static void main(String[] args) throws Exception {String keyPassword="1234567890123456"; //여러문이 만들 키String target="plainText";byte[] targetBytes = target.ge..
자바 base64 인코딩 디코딩을 할 때 commons-codec-1.5.jar 를 다운받아서 org.apache.commons.codec.binary.Base64.encodeBase64String() 위 메소드를 사용해서 인코딩을 한다. 그럼 commons-codec-1.5.jar 파일은 또 다운 받아야 되고 귀찮다. 그래서 그냥 jdk 기본 jar에 있는것을 사용할 수 있다. java.util.Base64 이다. import java.io.UnsupportedEncodingException; import java.util.Base64; import java.util.Base64.Decoder; import java.util.Base64.Encoder; public class Base64EncodeDe..
오라클 페이징 쿼리 원리 select a.*from(select row_number() over(order by app asc) as r_num,count(*) over () as totcount,(row_number() over (order by app desc)) page0,(row_number() over (order by app desc)-1) / 5 as page1,floor( (row_number() over(order by app desc)-1) -1 / 5 +1 ) as page0from table)a; 결과:r_numtotcountpage0page1page1001001019910020.219810030.419710040.619610050.81951006129410071.229310081...
- Total
- Today
- Yesterday
- proc
- 포인터
- C
- 이클립스
- JDBC
- KG
- xe addon
- 오라클
- 자바 smtp
- esql
- 라이믹스
- C언어
- 자바
- 인포믹스
- xe애드온
- EC
- webix
- MySQL
- 파이썬
- Python
- 플러터
- php
- 스크래핑
- XE
- 문자열
- XE3
- 파싱
- ocajp
- 프로씨
- ocjap
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |