This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package app; | |
| import dao.HeroUserMapper; | |
| import entity.HeroUser; | |
| import entity.HeroUserExample; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.support.ClassPathXmlApplicationContext; | |
| /** | |
| * Created with IntelliJ IDEA. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package batch; | |
| import entity.TblReport; | |
| import entity.TblReportExample; | |
| import mapper.TblReportMapper; | |
| import org.springframework.batch.item.ItemWriter; | |
| import java.util.ArrayList; | |
| import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static String formatFen2Yuan2(long amt) { | |
| boolean neg = false; | |
| if(amt < 0) { | |
| neg = true; | |
| amt = -amt; | |
| } | |
| long left = amt / 100L; | |
| long right = amt % 100L; | |
| StringBuilder sb = new StringBuilder(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String[] args) throws Exception { | |
| InputStream fis = app.class.getClassLoader().getResourceAsStream("input.txt"); | |
| InputStreamReader isr = new InputStreamReader(fis, "GBK"); | |
| Reader in = new BufferedReader(isr); | |
| FileOutputStream fos = new FileOutputStream("D:/download/test.txt"); | |
| OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); | |
| Writer out = new BufferedWriter(osw); | |
| int ch; | |
| while ((ch = in.read()) > -1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select | |
| b.* | |
| from batch_job_execution_params b | |
| where b.job_execution_id in ( | |
| select a.job_execution_id from BATCH_JOB_EXECUTION a where end_time is null); | |
| update BATCH_JOB_EXECUTION t set t.end_time = SYSDATE where t.job_execution_id = '1581' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style type="text/css"> | |
| .red .x-progress-bar{ | |
| background: palevioletred none; | |
| } | |
| .x-progress.red { | |
| border-color: #D3279C; | |
| } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Connector port="8080" protocol="HTTP/1.1" | |
| connectionTimeout="20000" | |
| redirectPort="8443" | |
| URIEncoding="UTF-8" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> | |
| <!-- access --> | |
| <property name="driverClass" value="${db.driverclass}" /> | |
| <property name="jdbcUrl" value="${db.url}" /> | |
| <property name="user" value="${db.user}" /> | |
| <property name="password" value="${db.password}" /> | |
| <!-- pool sizing --> | |
| <property name="initialPoolSize" value="3" /> | |
| <property name="minPoolSize" value="6" /> | |
| <property name="maxPoolSize" value="25" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main(void){ | |
| pid_t = pid; | |
| if((pid = fork()) < 0){ | |
| err; | |
| } | |
| else if(pid == 0){ | |
| if((pid = fork()) < 0) err; | |
| else if(pid > 0) exit(0); | |
| sleep(2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <configuration> | |
| <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
| <!-- encoders are assigned the type | |
| ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | |
| <encoder> | |
| <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | |
| </encoder> | |
| </appender> |
OlderNewer