private final static int REQUEST_CONTACTS = 1;//自定義回傳數值
@Override
protected void onCreate(Bundle savedInstanceState) {
int permission = ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CALENDAR);//權限確認
if(permission != PackageManager.PERMISSION_GRANTED){//沒有獲得全縣
    ActivityCompat.requestPermissions( this,
            new String[]{Manifest.permission.READ_CALENDAR}, REQUEST_CONTACTS );//要求權限
}

}

 

JBLin 發表在 痞客邦 留言(0) 人氣()

@Controller
public class TestController {

JBLin 發表在 痞客邦 留言(0) 人氣()

SELECT sum(加總欄位) FROM `資料表名稱` WHERE 符合條件才列入加總 GROUP BY 根據此欄位相同才加總 


JBLin 發表在 痞客邦 留言(0) 人氣()

   @SuppressWarnings("static-access") =>加上此註解 可以忽略警告

JBLin 發表在 痞客邦 留言(0) 人氣()

環境變數 : 变量名为: JAVA_TOOL_OPTIONS, 变量值为:-Dfile.encoding=UTF-8
或者

JBLin 發表在 痞客邦 留言(0) 人氣()

C:\xampp\apache\conf\extra\httpd-ssl.conf
修改第36行ssl port 443-> ?

JBLin 發表在 痞客邦 留言(0) 人氣()

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

JBLin 發表在 痞客邦 留言(0) 人氣()

1.project -> Generate JavaDoc

2.javadoc command: jdk/javadoc.exe

JBLin 發表在 痞客邦 留言(0) 人氣()

1. 【ALT+/】提示 key => Content Assist

2. 【Ctrl+O】顯示類中方法和屬性

JBLin 發表在 痞客邦 留言(0) 人氣()

@Configuration calss 將xml beam標籤在class實現

@Bean function 搭配@Configuration使用 功能為return object

JBLin 發表在 痞客邦 留言(0) 人氣()