We have Spring (3.0.6) @WebSerice
working fine with @Autowried
to @Service
and @Repository
with Java 7.
Recently, we need to upgrade to Java 8 then the repository class can not @Autowired
.
Very simple Resposity:
@Repository public interface MyClss extends JpaRepository<MyData, String> { MyData findOne( String key ); }
Is there any difference in @Autowrited
from Java 7 to Java 8 in Spring?