That is because your class JpaRepository1 is not a Spring bean, and you are instantiating the class yourself using new JpaRepository1() in line 6 instead of letting Spring manage it.
Spring autowiring only works in Spring beans. Spring cannot autowire fields in objects that are not Spring beans.