Please refer to below xml.

    1. <properties>
    2. <log4j.version>2.16.0</log4j.version>
    3. <disruptor.version>3.4.4</disruptor.version>
    4. </properties>
    5. <dependency>
    6. <groupId>org.springframework.boot</groupId>
    7. <artifactId>spring-boot-starter</artifactId>
    8. <exclusions>
    9. <exclusion>
    10. <groupId>org.springframework.boot</groupId>
    11. <artifactId>spring-boot-starter-logging</artifactId>
    12. </exclusion>
    13. </exclusions>
    14. </dependency>
    15. <dependency>
    16. <groupId>org.springframework.boot</groupId>
    17. <artifactId>spring-boot-starter-log4j2</artifactId>
    18. <exclusions>
    19. <exclusion>
    20. <artifactId>log4j-core</artifactId>
    21. <groupId>org.apache.logging.log4j</groupId>
    22. </exclusion>
    23. <exclusion>
    24. <artifactId>log4j-jul</artifactId>
    25. <groupId>org.apache.logging.log4j</groupId>
    26. </exclusion>
    27. <exclusion>
    28. <artifactId>log4j-slf4j-impl</artifactId>
    29. <groupId>org.apache.logging.log4j</groupId>
    30. </exclusion>
    31. </exclusions>
    32. </dependency>
    33. <dependency>
    34. <groupId>org.apache.logging.log4j</groupId>
    35. <artifactId>log4j-core</artifactId>
    36. <version>${log4j.version}</version>
    37. <exclusions>
    38. <exclusion>
    39. <artifactId>log4j-api</artifactId>
    40. <groupId>org.apache.logging.log4j</groupId>
    41. </exclusion>
    42. </exclusions>
    43. </dependency>
    44. <dependency>
    45. <groupId>org.apache.logging.log4j</groupId>
    46. <artifactId>log4j-api</artifactId>
    47. <version>${log4j.version}</version>
    48. </dependency>
    49. <dependency>
    50. <groupId>org.apache.logging.log4j</groupId>
    51. <artifactId>log4j-slf4j-impl</artifactId>
    52. <version>${log4j.version}</version>
    53. <exclusions>
    54. <exclusion>
    55. <artifactId>log4j-api</artifactId>
    56. <groupId>org.apache.logging.log4j</groupId>
    57. </exclusion>
    58. <exclusion>
    59. <artifactId>log4j-core</artifactId>
    60. <groupId>org.apache.logging.log4j</groupId>
    61. </exclusion>
    62. </exclusions>
    63. </dependency>
    64. <dependency>
    65. <groupId>org.apache.logging.log4j</groupId>
    66. <artifactId>log4j-jul</artifactId>
    67. <version>${log4j.version}</version>
    68. <exclusions>
    69. <exclusion>
    70. <artifactId>log4j-api</artifactId>
    71. <groupId>org.apache.logging.log4j</groupId>
    72. </exclusion>
    73. </exclusions>
    74. </dependency>
    75. <dependency>
    76. <groupId>com.lmax</groupId>
    77. <artifactId>disruptor</artifactId>
    78. <version>${disruptor.version}</version>
    79. </dependency>