If http implicitly means port 80 and jdbc:mysql: implicitly means port 3306, why do we have to specify port 3306 in a mysql address, yet not need to specify port 80 in a http address?
CodePudding user response:
Per jdbc docs
"If port is not specified, the corresponding default is used."
Its up to each provider of a protocol parser to implement defaults if they want.