carrot
06/28/2022, 10:14 PMNino
06/30/2022, 1:43 PM<http://0.0.0.0:8080>
, but after starting the server, this address doesn't work. <http://localhost:8080>
works, tho. Why is it so ?Andrzej Sawoniewicz
07/01/2022, 4:13 PMAndrzej Sawoniewicz
07/01/2022, 8:49 PMAndré Martins
07/05/2022, 10:55 AMChecked exception is invalid for this method!
The only ways I would be able to make the test is either rewrite the client method in java and mark it with checked exception or wrap the call and rethrow a runtime exception right? (any other ideias?)Mohamed Jabarullah
07/07/2022, 7:00 AMantonarhipov
07/07/2022, 12:39 PMjanvladimirmostert
07/10/2022, 3:00 PMcorneil
07/10/2022, 5:52 PMhantsy
07/13/2022, 7:20 AM@file:Suppress("JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE")
at the first line of the Kotlin file, it did not resolve my issues. I have tried to recompile the whole project.hantsy
07/13/2022, 7:21 AMminhnhat
07/16/2022, 4:34 PMminhnhat
07/16/2022, 4:35 PMminhnhat
07/16/2022, 4:36 PMpost.tags.add(existedTag)
postRepo.save(post)
but It didn't workGiorgos Makris
07/19/2022, 6:17 PMGorkem Yurtseven
07/19/2022, 6:20 PM@Service
class FirestoreService(
private val firestore: Firestore?,
)
vs.
@Service
class FirestoreService(
private val firestore: Firestore,
)
jessel
07/19/2022, 6:22 PMGorkem Yurtseven
07/19/2022, 6:24 PMLarry Meadors
07/19/2022, 6:30 PMdany giguere
07/19/2022, 6:39 PMversion: '3.7'
services:
#MySQL Service
db:
image: mysql:5.7.22
container_name: ${DOCKER_CONTAINER_NAME_SLUG}_db
restart: unless-stopped
tty: true
ports:
- ${DOCKER_MYSQL_PORTS}
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- dbdata:/var/lib/mysql/
- ./mysql/my.cnf:/etc/mysql/my.cnf
networks:
- my-network
#Docker Networks
networks:
my-network:
driver: bridge
#Volumes
volumes:
dbdata:
driver: local
then in a different spring boot project, I have this docker-compose file:
version: '3'
services:
app:
container_name: api-app
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
networks:
default:
external:
name: my-network
it fails to build because I get this error:
java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Anyone see the problem ?Gorkem Yurtseven
07/20/2022, 1:30 AMjaguililla
07/22/2022, 7:08 AMMikhail
07/22/2022, 8:01 PMcom.zaxxer.hikari.HikariDataSource: HikariPool-1 - Starting...
every single time I run my application. Using Spring Boot and Docker Compose on Arch Linux. What I've tried:
• Rebooting
• Checking the connection string
• Checking database availability
• Checking my docker compose configuration
• Downgrading the kernel then rebooting
• Upgrading the kernel then rebooting
• Cleaning up docker (containers, images, volumes ....) then rebooting
• Restarting docker
Also, I use Spring Boot 2.7.1, PostgreSQL 15beta2-bullseye, Docker 20.10.17 and Docker Compose 2.6.1Randah
07/24/2022, 4:28 PMSlackbot
07/25/2022, 3:55 AMjulien lengrand-lambert
07/27/2022, 1:35 PMcopy
creates shallow, not deep copies. The math checks out for complex types such as lists or other data classes, but not for 'primitives' likes Strings and Enums. Can someone help me clarify this? [Here is a complete example](https://pl.kotl.in/CzsYyKC_l) , but in essence for the given code, I would potentially expect name
to also be mutated in the copy if data classes were purely shallow.
Am I getting this wrong?
import java.util.*
enum class WEAPONS{
AXE, SWORD, WAND, BOW
}
enum class CLASS{
WIZARD, WARRIOR, PALADIN, THIEF
}
data class Origin(val city: String, var country: String)
data class FantasyHero(var name: String, val weapons: MutableList<WEAPONS>, var heroClass: CLASS?, val origin: Origin = Origin("Utrecht", "The Netherlands"))
fun main(){
val gandalf = FantasyHero("Gandalf the Grey", mutableListOf(WEAPONS.WAND), CLASS.WIZARD)
val anotherGandalf = FantasyHero("Gandalf the Grey", mutableListOf(WEAPONS.WAND), CLASS.WIZARD)
val gandalfCopy = gandalf.copy()
val betterGandalf = gandalf.copy(name="Gandalf the White")
println("--------")
println("Changing the first instance's name")
gandalf.name = "Gandalf the White"
println(gandalf.name)
println(anotherGandalf.name)
println(gandalfCopy.name)
println(betterGandalf.name)
println("--------")
println("Changing the first instance's class")
gandalf.heroClass = CLASS.PALADIN
println(gandalf.heroClass)
println(anotherGandalf.heroClass)
println(gandalfCopy.heroClass)
println(betterGandalf.heroClass)
}
--------
Changing the first instance's name
Gandalf the White
Gandalf the Grey
Gandalf the Grey
Gandalf the White
--------
Changing the first instance's class
PALADIN
WIZARD
WIZARD
WIZARD
julien lengrand-lambert
07/27/2022, 1:36 PMUser
class above would be as follows:
fun copy(name: String = this.name, age: Int = this.age) = User(name, age)
Yogeshvu
07/27/2022, 10:24 PMMohamed Jabarullah
07/30/2022, 7:07 AMandyg
07/24/2022, 5:31 AM