我的const state = {
notes: {
1: {
contents: 'test'
},
2: {
contents: 'hi, I\'m a note.'
}
}
};
中当前有props: {
noteId: {
type: Number,
required: true
},
computed: {
note: {
get () {
return this.$store.state.notes[this.noteId];
},
set (value) {
this.$store.commit('setNote', {
id: this.noteId,
value: value
});
}
}
}
。
然后我在maven repository中查找,它说implementation 'mysql:mysql-connector-java'
具有gradle.build
的compli依赖项。
但是如果我执行mysql:mysql-connector-java
,则会显示:
那为什么后面没有com.google.protobuf:protobuf-java
?
答案 0 :(得分:1)
主要需要com.google.protobuf:protobuf-java软件包来构建mysql:mysql-connector-java软件包的源,并且gradle从maven存储库中获取构建jar文件。因此,库列表中缺少该软件包。
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-installing-maven.html
检查以下链接:
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-installing-source.html