引入別人的項目發現利用HibernateTemplate的load的方法報錯了。錯誤提示為: The method load(Class, Serializable) in the type HibernateTemplate is not applicable ...
把Toast.makeText activity .class, female ,Toast.LENGTH SHORT .show 這行里面的activity.class改為activity.this makeText方法的第一個參數指的是上下文的對象,你這里上下文的對象是這個activity本身,所以寫成activity.this代表本身 ...
2012-08-17 09:02 0 15891 推薦指數:
引入別人的項目發現利用HibernateTemplate的load的方法報錯了。錯誤提示為: The method load(Class, Serializable) in the type HibernateTemplate is not applicable ...
Fragment newfragment =new MyFragment();fragmentTransaction.replace(R.layout.activity_main,newfragment ).commit(); 提示錯誤:The method replace(int ...
Activity.this, 第一個Activity.class); in.putExtras(bun); ...
今天,我弟遇到一個有意思的錯誤~ 程序: package com.mq.ceshi1; public class StringFormat { public static void main(String[] args) { int num = 10; int num2 ...
1. 問題 看到這個錯誤以為是貌似jsp頁面有誤,c:forTokens標簽用錯了?? 但是測試和預生產環境沒有出現該問題,是否環境有問題? 2. 解決方法 在網上看到有說jstl.jar沖突的,在項目lib中確實有jstl1.2.jar但是tomcat的lib庫及jdk ...
1.Toast 作用 它是android中一種簡單的消息提示框,它沒有焦點(即不能被點擊),會根據設置的時間自動消失。 2.介紹下Toast的參數 第一個參數:當前的上下文環境,,Activity中我們直接用this代替,而到了一個button ...
此問題是你項目里的commons-codec.jar包里的Base64.decodeBase64方法只有byte[]參數 沒有String參數。換一個這個jar包的版本就行了 往項目里添加jar包:右鍵項目->properties->java Build Path-> ...
原因:本該導入import org.apache.log4j.Logger; 結果成了import java.util.logging.Logger; 如果硬把private static Logger logger = Logger.getLogger(InsertPersons.class ...