原创 頁面加載前觸發
(function ($) { var userAgentInfo = navigator.userAgent; var mobileAgents = [ "Android", "iPhone", "Sy
原创 小程序post請求
需要設置 header: { “Content-Type”: “application/x-www-form-urlencoded”}, wx.request({ url: app.globalData.url + “/task
原创 遞歸問題:
僞代碼 fun(){ 語句一 fun(); 語句二 } 先執行語句一在執行fun()在執行語句一在執行fun()***只到終止條件然後執行語句二在回到fun()N-1執行語句二
原创 java返回泛型類型T
public T get(T t){ return t; }
原创 myeclipse激活ACTIVATION_KEY爲null
本人是激活過myeclipse後重裝的,ACTIVATION_KEY一直爲空,自己網上找了好久,都不見效,最後無意中點了一下 rebuild key,然後點擊active,結果出來,總結,遇到問題多思考,多動手,多點點
原创 樹莓派安裝lmxl
sudo apt-get install python-lxml
原创 獲取html的片段代碼
etree_html = etree.HTML(html.text) sContent = etree_html.xpath('//*[@class="m-down"]')[0] sContent = etree.tostri
原创 springboot啓動時執行任務CommandLineRunner
平常開發中有可能需要實現在項目啓動後執行的功能,SpringBoot提供的一種簡單的實現方案就是添加一個model並實現CommandLineRunner接口,實現功能的代碼放在實現的run方法中
原创 jpa複雜查詢
Specification spec =(root, criteriaQuery,criteriaBuilder)->
原创 Springboot @Configuration註解
項目加載中執行,我的理解相當於ioc
原创 C++引用
c++引用一般做形參,改變主函數變量用
原创 jpa分頁
PageRequest.of這個實現了Pageable接口,可以直接用來分頁
原创 JAVASE maven打成可運行jar
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assemb
原创 向私服傳遞jar
<repository> snapshots http://xxx.xxx.xxx.xxx/maven-releases/ setting.xml配置 snapshots(和上面的id對應) 用戶名 密碼