skip to Main Content

Accessing persistent H2 DB in docker container

I'm deploying a springboot application and I want to use a persistent DB. So, in application.properties file, I have spring.datasource.url=jdbc:h2:file:/home/ubuntu/db;AUTO_SERVER=TRUE; Now this works as long as I start this application without using a container. Now, I build a docker image…

VIEW QUESTION

Trying to implement telegrambots-spring-boot-starter and create Telegram bot, but it doesn't work – Telegram API

I use Spring boot and telegrambots-spring-boot-starter dependency. I did all things as it showed in this repository: https://github.com/rubenlagus/TelegramBots/tree/master/telegrambots-spring-boot-starter. But it didn't work. My pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.3</version> <relativePath/> <!-- lookup…

VIEW QUESTION

Android Studio – How to receive the message from stomp websocket with spring boot on android?

I've got the simple WebSocket example from https://spring.io/guides/gs/messaging-stomp-websocket/ package com.example.chatservice.message; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; import org.springframework.web.socket.config.annotation.StompEndpointRegistry; import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer; @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); config.setApplicationDestinationPrefixes("/app"); } @Override public void…

VIEW QUESTION
Back To Top
Search