Ambiguous method call. Both iterator () in KafkaStream and iterator () in KafkaStream match
ConsumerIterator<byte[],byte[]> it =stream.iterator();
這句程式碼老是報錯,The method iterator() is ambiguous for the type KafkaStream<byte[],byte[]>
解決方法:將maven中配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
刪除,然後給系統應用jdk1.8,這個問題一般是由於jdk的版本導致的。
轉自:
相關推薦
Ambiguous method call. Both iterator () in KafkaStream and iterator () in KafkaStream match
ConsumerIterator<byte[],byte[]> it =stream.iterator(); 這句程式碼老是報錯,The method iterator() is ambiguous for the t
IDEA/Android Studio報Ambiguous method call的一種解決方法
最近在用IDEA開發android一直報如題的錯誤,此時是可以正常編譯執行,但紅色的錯誤提示總是令人非常不爽。 錯誤都指向了java基類Object.java中的方法存在ambiguous method call,此問題出現在設定了Sourcepath的情況下,當不設定時不
<轉>How to Encourage Your Child's Interest in Science and Tech
sim challenge table nic options https fun developed advice How to Encourage Your Child‘s Interest in Science and Tech This week’s Ask-A-D
[Preact] Use State and Props in the Component Render Function
cnblogs use method nic imp ima rop component end Preact offers, in addition to the regular component API from React, the ability to acces
Handling bundles in activities and fragments
like extra trac bundle templates have fig desc des Bundle is a useful data holder, which maps String values to vari
[Nuxt] Navigate with nuxt-link and Customize isClient Behavior in Nuxt and Vue.js
component edi task pre share http less obj .get Because Nuxt renders pages on the server, you should use the nuxt-link components to navi
[Nuxt] Use Vuex Actions to Delete Data from APIs in Nuxt and Vue.js
export begin async delet tin remove todo ras alt You‘ll begin to notice as you build out your actions in Vuex, many of them will look qui
Relationship between frequency and spatial in digital images
log 兩個 表示 title cal .com 關系 show tla 今天又復習了一遍<<Digital Image Processing>>的第四章,為了加深對頻域的理解,我自己用PS畫了一張圖。如下: 然後做FFT,得到頻譜圖如下:
About the diffrence of wait timed_wait and block in java
@override stack util except str void rgs dex interrupt import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.Reentra
Career path in sports and Darren Fells
ril com sports medical lar recently expr som ast Art Briles apparently wasn鈥檛 the only controversial figure the CFL鈥檚 Hamilton Tiger-Cats
【轉】Redundancy and Latency in Structured Buffer Use
list set actual about ast oat efi macros cte From:https://developer.nvidia.com/content/redundancy-and-latency-structured-buffer-use In a
Authentication and Authorization in ASP.NET Web API
module to server -h alter prop strong bar isa som ?You‘ve created a web API, but now you want to control access to it. In this series o
解決author波浪線Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click
博客 翻譯 cli 修復 and idea tro alt 拼寫檢查 自從把默認的頭註釋的author改成自己的名字以後越看越順眼,但是發現名字下面一直有個波浪線,強迫癥簡直不能忍。 然後當你把鼠標放上去,再點擊提示上的“more”,會看到下面的提示: Spellchec
The Usage of Lambda and Heap in the C++ STL
ner class eap cto con c++ stl nts been nta The Usage of Lambda and Heap in the C++ STL Heap In c++ STL, the heap had been implemented as
sap.ui.require in SAP UI5 and require in nodejs
代碼 fin 同事 upload gem OS modules 公眾 ont UI5 例如我需要在controller的onShowHello裏通過MessageToast彈一個消息顯示在UI上, 我需要先定義我自己的controller,該controller exte
JavaScript and Ruby in ABAP
ABAP. Java JavaScript Ruby SAP Netweaver裏有個mini JavaScript engine CL_JAVA_SCRIPT, 對於Js code的編譯和執行都是用system call完成。 只能當玩具用:report SJSEU 執行結果:120
token in c and cpp (C preprocessor)
-c iso types The roc reference and -name space C tokens are of six types, They are, keyword identifier constant string-literal punctuato
833. Find And Replace in String
neo bsp overlap nbsp source and there bec enc Find And Replace in String To some string S, we will perform some replacement operations th
install mysql in centos and change passoword
restart sys arc update serve ins HR 2-0 ase Install mysql Installing MySQL wget https://dev.mysql.com/get/mysql57-community-release-el7-
Qualcomm platform, the commonly used parameters of charger and battery in device tree file
inpu res alc max stc sum In nat TE 1 battery charging voltage : qcom,float-voltage-mv = <0x10fe>; 2 battery recharge threshold : qc