Home > Software engineering >  How to import org.springframework.transaction.annotation.Transactional
How to import org.springframework.transaction.annotation.Transactional

Time:07-26

How to import org.springframework.transaction.annotation.Transactional ?

I have @Transactional in red. Despite it belongs to org.springframework I can not import it.

https://github.com/anatoliy19/test_CRUD.git

CodePudding user response:

Well, I've fixed pom.xml in your project. You had the file corrupted, I've just removed one of the build sections (maybe the wrong one, please check, which one you want to leave). Then I've fixed AppConfig class where some imports were missing. Now mvn clean install package command works fine for me: that means, that you do not have compilation errors anymore. I've sent you a PR with my changes. Please let me know if that solves the problem.

  • Related