我正在使用 jdk-1.8 并在我的 tomcat 服务器上收到以下错误
java.lang.RuntimeException: java.lang.UnsupportedOperationException: clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+
Run Code Online (Sandbox Code Playgroud)
它在本地使用相同的环境(jdk-8)工作正常,但是当将战争部署到 tomcat serer 时,我遇到了这个问题。
我已将 id 传递给 url ie。(http://127.0.0.1:8000/admin/article/32)。现在我想在 vue 中获取该 id 以仅获取该 id 的数据,但我不知道在 vue 中获取该 id
我的 vue 脚本在下面
<script>
export default{
data() {
return{
articles : [],
article: {
id :'',
title : '',
body : '',
date :''
},
article_id: ''
};
},
created() {
this.fetchArticles();
},
methods: {
fetchArticles() {
var page_url = 'http://127.0.0.1:8000/api/admin/article/'+ I want the parameter id here;
fetch(page_url)
.then(res => res.json())
.then(res => {
this.article = res.data;
})
.catch(err => console.log(err));
}
}
}; …Run Code Online (Sandbox Code Playgroud)