Guest User

Untitled

a guest
Dec 11th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. @Configuration
  2. @EnableTransactionManagement(mode = AdviceMode.ASPECTJ)
  3. public class YourPersistenceConfig {
  4. }
  5.  
  6. <dependencies>
  7. <dependency>
  8. <groupId>org.aspectj</groupId>
  9. <artifactId>aspectjrt</artifactId>
  10. </dependency>
  11. <dependency>
  12. <groupId>org.springframework</groupId>
  13. <artifactId>spring-aspects</artifactId>
  14. </dependency>
  15. </dependencies>
  16.  
  17. <build>
  18. <plugins>
  19. <plugin>
  20. <groupId>org.codehaus.mojo</groupId>
  21. <artifactId>aspectj-maven-plugin</artifactId>
  22. <version>1.11</version>
  23. <configuration>
  24. <sources>
  25. <source>
  26. <basedir>${project.basedir}</basedir>
  27. <includes>
  28. <include>**/*.java</include>
  29. </includes>
  30. </source>
  31. </sources>
  32. <aspectLibraries>
  33. <aspectLibrary>
  34. <groupId>org.springframework</groupId>
  35. <artifactId>spring-aspects</artifactId>
  36. </aspectLibrary>
  37. </aspectLibraries>
  38. <source>1.8</source>
  39. <showWeaveInfo>true</showWeaveInfo>
  40. </configuration>
  41. <executions>
  42. <execution>
  43. <goals>
  44. <goal>compile</goal>
  45. </goals>
  46. </execution>
  47. </executions>
  48. </plugin>
  49. </plugin>
  50. </build>
Add Comment
Please, Sign In to add comment