stream2stream / arrakis_v2

1 stars 2 forks source link

Change spring boot app to use H2 in memory database #4

Open stream2stream opened 11 months ago

stream2stream commented 11 months ago

I think this is already done, we can check with @stream2stream (Selvyn)

stream2stream commented 11 months ago

App runs locally, both as a standalone jar and from intellij, but /h2-console gives a 404, you can it's started in the console output, but not reachable via browser, any ideas

peterrhysthomas commented 11 months ago

This stack overflow post might helpSpring Boot JPA H2 Console not running, application.properties file ignoredstackoverflow.comcheers, Peter On 21 Jul 2023, at 09:39, stream2stream @.***> wrote: I think this is already done, we can check with @stream2stream (Selvyn)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

stream2stream commented 11 months ago

I'll clone it down and see if it runs

Thanks Sel

Be not changed by change, be the change maker


Celestial Consulting Ltd (3340400) VAT(GB 769 2774 72) 9 Handsworth Wood Rd, Birmingham, B20 2DQ T: 0121 288 3079 M: 07778 449924 http://celestial.co.uk On 21/07/2023 18:53:50, peterrhysthomas @.> wrote: This stack overflow post might helpSpring Boot JPA H2 Console not running, application.properties file ignoredstackoverflow.comcheers, Peter On 21 Jul 2023, at 09:39, stream2stream @.> wrote: I think this is already done, we can check with @stream2stream (Selvyn)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> — Reply to this email directly, view it on GitHub [https://github.com/stream2stream/arrakis_v2/issues/4#issuecomment-1646052078], or unsubscribe [https://github.com/notifications/unsubscribe-auth/ADJO5ZIGFRI47RM6X3KDA33XRK6YHANCNFSM6AAAAAA2SQ4F3E]. You are receiving this because you were mentioned.Message ID: @.>

stream2stream commented 11 months ago

Very odd, I'm not sure what's happened with the changes you guys made, but I'e had to add this depdendency to the pom.xml

org.springframework.boot spring-boot-devtools true

That fixed the h2-console issue, but no data is coming back on the ReSTful endpoints, so trying to figure that out now

Thanks Sel

Be not changed by change, be the change maker


Celestial Consulting Ltd (3340400) VAT(GB 769 2774 72) 9 Handsworth Wood Rd, Birmingham, B20 2DQ T: 0121 288 3079 M: 07778 449924 http://celestial.co.uk On 21/07/2023 18:53:50, peterrhysthomas @.> wrote: This stack overflow post might helpSpring Boot JPA H2 Console not running, application.properties file ignoredstackoverflow.comcheers, Peter On 21 Jul 2023, at 09:39, stream2stream @.> wrote: I think this is already done, we can check with @stream2stream (Selvyn)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> — Reply to this email directly, view it on GitHub [https://github.com/stream2stream/arrakis_v2/issues/4#issuecomment-1646052078], or unsubscribe [https://github.com/notifications/unsubscribe-auth/ADJO5ZIGFRI47RM6X3KDA33XRK6YHANCNFSM6AAAAAA2SQ4F3E]. You are receiving this because you were mentioned.Message ID: @.>

stream2stream commented 11 months ago

The h2-console issues was resolved by adding this dependency to the pom.xml

org.springframework.boot spring-boot-devtools true

Still got an issues where no data is coming out of the ReST endpoints, looking into it

stream2stream commented 11 months ago

It's all working,

yes yes yes

Thanks Sel

Be not changed by change, be the change maker


Celestial Consulting Ltd (3340400) VAT(GB 769 2774 72) 9 Handsworth Wood Rd, Birmingham, B20 2DQ T: 0121 288 3079 M: 07778 449924 http://celestial.co.uk On 21/07/2023 18:53:50, peterrhysthomas @.> wrote: This stack overflow post might helpSpring Boot JPA H2 Console not running, application.properties file ignoredstackoverflow.comcheers, Peter On 21 Jul 2023, at 09:39, stream2stream @.> wrote: I think this is already done, we can check with @stream2stream (Selvyn)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> — Reply to this email directly, view it on GitHub [https://github.com/stream2stream/arrakis_v2/issues/4#issuecomment-1646052078], or unsubscribe [https://github.com/notifications/unsubscribe-auth/ADJO5ZIGFRI47RM6X3KDA33XRK6YHANCNFSM6AAAAAA2SQ4F3E]. You are receiving this because you were mentioned.Message ID: @.>

stream2stream commented 11 months ago

Anyone know why the latest build fails. h2-console issue has been resolved but now getting a build failure

peterrhysthomas commented 11 months ago

Looks like some problem in the pom file Error: 'dependencies.dependency.version' for org.springframework.boot:spring-boot-devtools:jar is missing. @ line 73, column 21 Does it work if you run maven locally?

stream2stream commented 11 months ago

Ahh ok I get the same problem, I'll try and fix it

stream2stream commented 11 months ago

Sorted, it wanted a version number