- Ubuntu 22.04 LTS
- PostgreSQL
- Caddy Proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .docker_build_database: | |
| extends: .docker_base | |
| variables: | |
| PGPASSWORD: postgres | |
| POSTGRES_IMAGE: "${CI_REGISTRY}/${CI_PROJECT_PATH}/postgres:latest" | |
| SPECIFIC_IMAGE_NAME: database | |
| DOCKER_TAG: latest | |
| before_script: &docker_build_database_before_script | |
| - export DOCKER_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/${SPECIFIC_IMAGE_NAME}" | |
| - *docker_base_before_script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.samuelstein.project.configuration; | |
| import lombok.Getter; | |
| import lombok.Setter; | |
| import lombok.ToString; | |
| import org.apache.hc.client5.http.impl.classic.HttpClientBuilder; | |
| import org.springframework.boot.context.properties.ConfigurationProperties; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Primary; | |
| import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; |
- Navigate to directus install folder
npm install directus@10npx directus database migrate:latestpm2 stop directuspm2 start directus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add a onclick event listener to an img tag and call the function nextImage with comma separated image sources | |
| function nextImage(imageSources) { | |
| var images = imageSources.split(", "); | |
| const myImg = document.getElementById("detailImage"); | |
| var i = myImg.dataset.currentImage || 0; | |
| if(i<images.length-1){ | |
| i++; | |
| }else{ |
- You use JSON serialization and deserialization for Redis values
- You use Java records
JSON deserialization for cached Redis values always throws exception like:
Caused by: java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to class ...
OlderNewer