Tag : intellij-idea

I am trying to connect to a Docker PostgreSQL database from IntelliJ. application.properties spring.datasource.url=jdbc:postgresql://localhost:5432/student_application spring.datasource.username=*** spring.datasource.password=*** spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.show-sql=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.format_sql=true I am able to connect to docker psql via: docker run -it –rm –network=db postgres:alpine psql -h db -U postgres I have already created the database and can see it with the l command. So ..

Read more

I have the following docker-compose.yaml file: version: ‘3.8’ services: db: image: mysql:5.7 container_name: flutter-academy-mysql environment: MYSQL_ROOT_PASSWORD: HeiL0ier MYSQL_DATABASE: course volumes: – ~/dockerdata/flutter-academy:/var/lib/mysql ports: – 3306:3306 When I run the command docker-compose up I get the following output: Creating network "advanced_default" with the default driver Creating flutter-academy-mysql … done Attaching to flutter-academy-mysql flutter-academy-mysql | 2021-03-28 21:33:07+00:00 ..

Read more

I’m trying to debug my remote application in Docker using Intellij and spring dev tools, but I have this exception: Exception in thread "File Watcher" java.lang.IllegalStateException: Unexpected 500 INTERNAL_SERVER_ERROR response uploading class files at org.springframework.util.Assert.state(Assert.java:94) at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.performUpload(ClassPathChangeUploader.java:111) at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.onApplicationEvent(ClassPathChangeUploader.java:93) at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.onApplicationEvent(ClassPathChangeUploader.java:58) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) at org.springframework.boot.devtools.classpath.ClassPathFileChangeListener.publishEvent(ClassPathFileChangeListener.java:67) at org.springframework.boot.devtools.classpath.ClassPathFileChangeListener.onChange(ClassPathFileChangeListener.java:63) ..

Read more

I am working on a application where I am running multiple containers using docker-compose.yml. All the containers are successfully up. One of the container is having a cron file with the following contents: * * * * * sshpass -p root ssh -o StrictHostKeyChecking=no [email protected]"./script.sh" > /proc/1/fd/1 2> /proc/1/fd/2 whenever this cron job is trying ..

Read more

Hello I have problem with connection. I wonder why it didn’t work I would appreciate any help. Database type is MYSQL which is located in docker container. This is my inteli connection settings screenshot inteliJ connection settings with problem in screenshot This is my application.properties file spring.datasource.url=jdbc:mysql://192.168.99.100/registr spring.datasource.username=root spring.datasource.password=heslo spring.datasource.schema=classpath*:db/structure.sql spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect logging.level.org.hibernate.SQL=DEBUG logging.level.org.hibernate.type=TRACE ..

Read more