paulc4 / microservices-demo

Demo application to go with Blog on spring.io
889 stars 830 forks source link

Does not work with Java 11 #32

Open sagevoice opened 5 years ago

sagevoice commented 5 years ago

As written this code does not work under Java 11. However it can be fixed by adding some dependencies to the pom file. I added the following dependencies and it seems to be working for me fine now.

        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-core</artifactId>
            <version>2.3.0.1</version>
        </dependency>

        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.3.1</version>
        </dependency>

        <dependency>
            <groupId>javax.activation</groupId>
            <artifactId>activation</artifactId>
            <version>1.1.1</version>
        </dependency>

        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.3.0</version>
        </dependency>

        <dependency>
            <groupId>org.javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.25.0-GA</version>
        </dependency>

I hope this helps anyone else trying to get this running with Java 11

paulc4 commented 5 years ago

Thanks for doing this. I will leave the pom as it is for now, since Java 8 is still so prevalent.

skifans commented 5 years ago

Thank you - just commenting that adding the same extra dependencies fixed this for Java 12 as well.

paulc4 commented 4 years ago

Thanks again. I have updated my README to reference this issue.

Leandro-FM commented 2 years ago

Obrigado ! Salvou.

286010056 commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。您好,我以收到您的邮件,会尽快给您回复。