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 PMJames Richardson
07/30/2022, 2:41 PMandyg
07/24/2022, 5:31 AMandyg
07/24/2022, 5:31 AMVampire
07/24/2022, 7:08 AMAlex
07/24/2022, 11:36 AMandyg
07/25/2022, 6:55 AMVampire
07/25/2022, 7:00 AMandyg
07/25/2022, 7:04 AMVampire
07/25/2022, 8:38 AMandyg
07/25/2022, 8:54 AMVampire
07/25/2022, 9:02 AMkotlinx.serialization
.
And I already told you that you use #scripting support for example.
Your DSL is a Kotlin Script and you evaluate it.
How exactly this is done depends on the concrete requirements, but I guess you should start with reading the documentation and then maybe ask in the proper channel.andyg
07/25/2022, 9:42 AM{ 'type':'car',
'model':'Subaru',
'parts':{
'tires':{'brand':'Yokohama', 'size':'285/35R19'},
'oil':{'brand':'Mobil 1', 'viscosity':'0W40'},
}
}
the users could submit something like this:
car {
model = 'subaru'
tires {
brand = 'Yokohama'
size = '285/35R19'
}
oil(brand = 'Mobil 1', viscosity = '0W40')
}
Vampire
07/25/2022, 10:07 AMI wish this was a helpful exchangeMe too, but you just repeat your inital question with different words multiple times and do not accept the answer I already understood when you asked the first time. Doesn't change my answer. And I never said it is "simple", I said it is "possible" and that you should read about and ask in #scripting on how to actually do it best.
David Saff
07/25/2022, 1:33 PMGuillaume Taffin
07/25/2022, 5:00 PMandyg
07/26/2022, 7:31 AMhtml {
and }
the end users wouldn't have the tooling (code completion, all the other advantages of an IDE) to rapidly build a valid object. I will look into this more however, thank you.Vampire
07/26/2022, 8:10 AMLukáš Kúšik
08/01/2022, 8:35 PMandyg
08/03/2022, 6:08 AM