skip to Main Content

404 Not Found Error on Spring Liquibase PostgreSQL app

I keep receiving 404 Not Found error for my MVC app. Here are my code: application.properties spring.datasource.url=jdbc:postgresql://localhost:5432/demo1 spring.datasource.username=demo1 spring.datasource.password=demo1 spring.datasource.driver-class-name=org.postgresql.Driver spring.jpa.generate-ddl=true spring.jpa.show-sql=true server.port=5000 ## Hibernate Properties # The SQL dialect makes Hibernate generate better SQL for the chosen database spring.jpa.properties.hibernate.dialect…

VIEW QUESTION

Javascript – How to pass variable from my JS file to Spring Boot Controller?

below is the code for selection of State and City in my view page( I am using thymeleaf 3) <div class="col-md-2"> <label for="inputCity" class="form-label">State</label> <select onchange="print_city('state', this.selectedIndex);" id="sts" name="stt" class="form-control" required> </select> </div> <div class="col-md-2"> <label for="inputCity" class="form-label">City</label> <select id="state"…

VIEW QUESTION

Unable to connect to Redis | Spring Boot

I've a redis service on upstash.io but not able to connect to it from my spring boot application This is my redis config @Configuration public class RedisConfig { @Bean public LettuceConnectionFactory redisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(); redisStandaloneConfiguration.setHostName("myhost"); redisStandaloneConfiguration.setPort(6379);…

VIEW QUESTION
Back To Top
Search