原创 搭建fastdfs圖片服務器

轉載 :搭建圖片服務器

原创 Nginx實現Tomcat集羣+session共享(windows環境下)

1,先在nginx官網下載windows版本的nginx : 下載地址   2.新建兩個文件夾,tomcat1,tomcat2,把tomcat丟進去.分別將兩個tomcat的配置文件中的一些端口改掉,我這裏就不配圖了 tomcat1:

原创 window下安裝mysql5.7.22版本

裝載自 Win10安裝MySQL5.7.22 解壓縮版(手動配置)方法 1.下載地址  https://dev.mysql.com/downloads/mysql/5.7.html#downloads 2 在安裝目錄下新建data文件夾,

原创 全國各省市區的sql

DROP TABLE IF EXISTS `region_directory`; CREATE TABLE `region_directory` ( `id` int(32) NOT NULL, `name` varchar(64

原创 java使用 openoffice+swftools+flexpaper 在window下完成簡單的文件預覽

1.轉載自 : java實現附件預覽(openoffice+swftools+flexpaper) 1.概述 主要原理 1.通過第三方工具openoffice,將word、excel、ppt、txt等文件轉換爲pdf文件 2.通過swfT

原创 idea的各種設置

1.添加文件時設置作者和時間setting --> Editor --> File and Code Templates 如果框裏的內容是空白的,手動打上去就行

原创 springboot+pagehelper

1.pom.xml中添加配置<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</art

原创 springboot+druid

1.pom.xml 配置<dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId>

原创 各種同步方法性能比較(synchronized,ReentrantLock,Atomic)

轉載自 http://zzhonghe.iteye.com/blog/826162 5.0的多線程任務包對於同步的性能方面有了很大的改進,在原有synchronized關鍵字的基礎上,又增加了ReentrantLock,以及各種Atom

原创 springboot+mybatis

1. pom.xml 配置<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:x

原创 springboot+thymeleaf

1.pom.xml配置<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-sta

原创 Java中的設計模式的舉例

模式可以分爲三大類:創建型模式(Creational Patterns)、結構型模式(Structural Patterns)、行爲型模式(Behavioral Patterns)。還有另一類設計模式:J2EE 設計模式。 1,工廠模式

原创 springboot+redis

1.pom.xml配置<!-- cache --> <dependency> <groupId>org.springframework.boot</groupId> <ar

原创 SpringBoot積累

1,啓動類 @EnableAutoConfiguration @ComponentScan(basePackages={"com.lj.controller","com.lj.config"}) public class App imp

原创 springboot+jsp

1.springboot不推薦使用jsp.2.pom.xml 加配置<dependency> <groupId>org.apache.tomcat.embed</groupId> <artifa