일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- port
- resource
- plugin
- 단축키
- Eclipse
- JavaScript
- Windows 10
- GIT
- tomcat
- netsh
- 줄바꿈 문자
- find
- xargs
- Quartz
- context
- vscode
- bash
- Source
- profile
- maVen
- Mac
- 네트워크
- import
- web.xml
- Windows
- grep
- VirtualBox
- ssh
- IntelliJ
- lsof
- Today
- Total
목록Dev/Java (163)
develog
private void test(Object... args) {System.out.println(">> test()");for (int i = 0; i < args.length; i++) {System.out.println(" " + i + ". " + args[i]);}}
test.xml--------------------------------------------------------------------------XML1홍길동100고길동200200김철수300300이영희400400 XmlTest.java--------------------------------------------------------------------------import java.io.File; import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.transform.Transformer;import javax.xml.transform.TransformerFacto..
import java.math.BigInteger; import javax.crypto.Cipher;import javax.crypto.KeyGenerator;import javax.crypto.SecretKey;import javax.crypto.spec.SecretKeySpec; public class AES {public static void main(String[] args) throws Exception {AES main = new AES();SecretKey key = main.generateSecretKey();String message = "암호화 테스트";System.out.println("암호전 : " + message);String encrypted = main.encrypt(mess..
import java.io.FileOutputStream; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.util.CellReference; import org.apache.poi.xssf.streaming.SXSSFWorkbook; public class TestMain { public static void main(String[] args) throws Throwable { Workbook wb = new ..
private void test() {try {ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring-config.xml");Service service = (Service) context.getBean("service");JobDataMap jobDataMap = new JobDataMap();jobDataMap.put("service", service);JobDetail jobDetail = new JobDetail("job1", "group1", JobB.class);jobDetail.setJobDataMap(jobDataMap);CronTrigger cronTrigger = new CronTrigger("c..
Defining a Job ---------------------------------------------------------------------------------2.1.x---------------------------------------------------------------------------------// A Job Classpublic class PrintPropsJob implements Job { public PrintPropsJob() { // Instances of Job must have a public no-argument constructor. } public void execute(JobExecutionContext context) throws JobExecutio..