原创 Linux IO 模式 及 select、poll、epoll

當進程進入阻塞狀態,是不佔用CPU資源的。 在 Linux 的緩存 I/O 機制中,操作系統會將 I/O 的數據緩存在文件系統的頁緩存( page cache )中,也就是說,數據會先被拷貝到操作系統內核的緩衝區中,然後纔會從操作系統

原创 js 跨域問題解決方案

1.建議方案: 在所有進行跨域訪問的方法內加入 resp.setHeader("Access-Control-Allow-Origin", "*");//允許所有ip(域名)訪問 2.jsonp  方案 ajax 請求: $.aj

原创 Spring 定時器--時間配置規範

org.springframework.scheduling.quartz.CronTriggerBean允許你更精確地控制任務的運行時間,只需要設置其cronExpression屬性。 一個cronExpression表達式有至少6個(

原创 maven 源碼下載

maven 下載源碼方法一:    修改maven 的配置文件setting.xml<profiles>  <profile>      <id>downloadSources</id>      <properties>       

原创 maven 打包源碼 和 doc文件

<build>    <plugins>        <plugin>            <groupId>org.apache.maven.plugins</groupId>           

原创 網頁圖片直接顯示與上傳

頁面代碼: <!DOCTYPE html> <html lang="en"> <head>     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><sc

原创 mysql 驅動太高 導致 報錯

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.Unsupp

原创 JFreeChart 中文亂碼

JFreeChart   1.0.13   中文亂碼  需要加入 如下 代碼 : // 創建主題樣式 StandardChartTheme standardChartTheme = new StandardChartTheme("CN"