只能進行**get**請求無法進行**post**請求因爲默認開啓**csrf**跨域攔截,關閉跨域攔截就ok了
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
//關閉防跨域
.csrf()
.disable();
}
只能進行**get**請求無法進行**post**請求因爲默認開啓**csrf**跨域攔截,關閉跨域攔截就ok了
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
//關閉防跨域
.csrf()
.disable();
}
Spring boot 配置數據源 spring: mvc: favicon: enabled: false datasource: primary: username: root