STS(eclipse)でjava.lang.Error:Unresolved compilation problems

STS(eclipse)でjava.lang.Error:Unresolved compilation problems

STS(eclipse)でjava.lang.Error:Unresolved compilation problems

単純なやつ

事象

STS(eclipse)でjava.lang.Error:Unresolved compilation problems

エラー内容

[2018/02/06 16:34:58] [daemonTaskExecutor-2] [o.s.b.c.j.SimpleStepHandler] [INFO ] Executing step: [sample01Job.step01]
[2018/02/06 16:34:58] [daemonTaskExecutor-2] [o.s.b.c.s.AbstractStep] [ERROR] Encountered an error executing step sample01Job.step01 in job sample01Job
java.lang.Error: Unresolved compilation problems: 
    log cannot be resolved
    log cannot be resolved
    log cannot be resolved
    log cannot be resolved
    log cannot be resolved
    log cannot be resolved
at sample01.Sample01JobTasklet.execute(Sample01JobTasklet.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

原因

今まで動いていたプロジェクトが急に動かない
⇒文字コードの問題

解決策

IDE上で
ワークスペース⇒テキスト・ファイル・エンコード
MS932をUTF-8に変更する

エラー・バグ対処カテゴリの最新記事