原创 sts搭建springboot項目,springBoot啓動報錯

1.If you want an embedded database please put a supported one on the classpath. 2.springCloud com.sun.jersey.api.clie

原创 redis集羣部署

1.將redis-3.2.8目錄下的redis.conf文件複製到cluster/7000目錄下 2.更改redis.conf配置文件 2.1 關閉aof使用rdb模式 2.2 . 取消IP綁定 2.3 關閉保護模式 2

原创 zookeeper與eurka的區別

1) ZooKepper側重CP設計,強調一致性。ZooKeepper結構主從結構,有leader,其他節點follwer。當在ZooKeeper節點宕機個數超過一半時和zk集羣在選舉時,zk是不推薦使用。Zk有心跳機制。 2) Eu

原创 Autowired

(@Autowired) @Autowired private LogDao logDao; /*public void setLogDao(LogDao logDao) { this.logDao = logDao; }*/

原创 eclipse添加java視圖

1.Windows→perspective→customize perspective

原创 使用反射技術往集合中添加不同類型的數據

public class TestException { public static void main(String[] args) throws Exception { List<String> list= new

原创 jdk環境變量配置

1.java_home 找到你的安裝目錄 2.path 在原路徑前加上jdk裏的bin路徑 %JAVA_HOME%/bin; 3.class_path (可以不配) 變量值 .

原创 請求亂碼處理

1.通用方法 /String username=request.getParameter(“username”); System.out.println(“解決之前:username=”+username); //通用的解決方式,無論