原创 webservice動態調用
一 cxf public static void main(String[] args) { String params[] = {"GXF003", "{'param':'This is the demo for WS
原创 ERROR 1044 (42000): Access denied for user
問題: 安裝完mysql後,執行mysql -u root update user set host = '%' where host = 'localhost' and user = 'ro
原创 輪播圖簡單實現
二 圖片的滾動 <!-- 每一行輪播圖片站位一個DIV--> <div id="rollImage3" style="display: block;"> <a href="$!shopRenovationM
原创 springboot 攔截器配置
實現攔截器後,在springboot中需要一個配置類,繼承WebMvcConfigurerAdapter 實現,LoginInterceptor爲實現的登陸攔截器。 @Configuration public class Servle
原创 jsonp
ajax請求: 前端一 $.ajax({ url:martVar + "/freightTemplate/queryById", dataType:"jsonp",
原创 Springboot 404 500錯誤頁面處理
以下方法 Spring-Boot 1.4.x 以上試用,具體看文檔。 springboot文檔 @Component public class OpenApiErrorViewResolver implements ErrorView
原创 springboot副本集mongoDB
pom 在pom文件引入相關的jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId
原创 bootstrap Table 後臺交互
bootstrap Table 後臺交互 table th對應的字段和bean相對應,bootstrap能自動解析json封裝展示到table上。同時bootstrap支持格式化,如下面代碼示例中的data-formatter方法,封
原创 jenkins重啓項目丟失
問題主要是jenkins重啓後之前的配置路徑丟失 解決辦法,修改jenkins web.xml 中 HUDSON_HOME 的value 系統默認在/root/.jenkins
原创 springboot maven filter寫入properties文件
提示 springboot 不支持原來的properties文件表示把原來${}改成@@,示例如下所示。 [email protected]@ database.p
原创 spring boot session 共享
pom 在pom中添加所用到的依賴。 <dependency> <groupId>org.springframework.boot</groupId> <artifa
原创 http接口調用
一httpclient調用http接口 public static String sendRequest(String url, Map<String, String> paras) { try { HttpClient htt
原创 zookeeper簡單集羣
安裝zookeeper 修改zoo.conf 配置dataDir路徑 在data目錄下創建myid標識zookeeper是第幾個 按照我的配置是server.1,我的當前zookeeper id應該標誌爲1 直接vi 創建m
原创 redis 主從複製
Spring 版本兼容性問題 3.2.5 1.master 主redis默認配置就可以。 redis.conf 直接寫:port 6379 2.slave 修改redis.conf配置 port 6379 slaveof 1
原创 springBoot tomcat啓動
Application configuration class: @SpringBootApplication public class ServletInitializer extends SpringBootServletInit