Where do they put server port number then?

|
ANN 2022-08-11 20:35:21
Any one having spring boot code for connect to my sql data base
GhosstWang 2022-08-11 20:52:26
springbootmicroservices-72648.jpg

GhosstWang 2022-08-11 20:52:26
springbootmicroservices-72647.jpg
Please help ,i keep getting this error when i run the test using webtestclient
Anand Rajput 2022-08-11 22:22:09
mahboy47 2022-08-10 19:45:53
spring do it for me

create controller annotation in in controller class

Anand Rajput 2022-08-11 22:24:41
mahboy47 2022-08-10 19:45:53
spring do it for me

@RequestMapping instead of getmapping

raja juluru 2022-08-11 22:30:52
vamshichanikya929 2022-08-11 20:03:18

use try catch and log the error

codetargetdev 2022-08-11 22:56:37
https://medium.com/@marcelo_32246/spring-boot-utilizando-configura%C3%A7%C3%B5es-din%C3%A2micas-com-o-application-properties-2efe088c5d43

Spring Boot — Utilizando configurações dinâmicas com o Application PropertiesMedium
O Spring (não apenas o spring boot, mas todo o ecosistema) é sem dúvida umas das melhores tecnologias do tipo “canivete suíço” já criadas…
Anil 2022-08-12 02:37:51
GhosstWang 2022-08-11 20:52:26

Your Rest Api end point not supporting to accept application/json format. Use Consumes attribute of Getmapping and allow to accept application/json.

Rishirishi11 2022-08-12 03:40:51
guys recently been into a java project
they are using jdbc template to connect the db
inorder to change this to hibernate I need to add the db credentials in application.properties and import the dependency right ?

another doubt is I don’t see any properties file
where do they put server port number then??

Saravana Pandiyan 2022-08-12 04:52:47
Rishirishi11 2022-08-12 03:40:51
guys recently been into a java project
they are using jdbc template to connect the db
inorder to change this to hibernate I need to add the db credentials in application.properties and import the dependency right ?

another doubt is I don’t see any properties file
where do they put server port number then??

It can be on the environment specific properties or it can be read from vault

Zelenskyy 2022-08-12 06:26:05
Rishirishi11 2022-08-12 03:40:51
guys recently been into a java project
they are using jdbc template to connect the db
inorder to change this to hibernate I need to add the db credentials in application.properties and import the dependency right ?

another doubt is I don’t see any properties file
where do they put server port number then??

BYDEFAULT server port number is 8080

star_kid9 2022-08-12 07:12:07
Rishirishi11 2022-08-12 03:40:51
guys recently been into a java project
they are using jdbc template to connect the db
inorder to change this to hibernate I need to add the db credentials in application.properties and import the dependency right ?

another doubt is I don’t see any properties file
where do they put server port number then??

U have to create application.properties file in resource folder

Rishirishi11 2022-08-12 07:32:45
star_kid9 2022-08-12 07:12:07
U have to create application.properties file in resource folder

ooh ok 👍🏻

rohan121a 2022-08-12 08:57:47
What is api consumer key and where to get it
Anderson Lin 2022-08-12 09:04:53
ANN 2022-08-11 20:35:21
Any one having spring boot code for connect to my sql data base

springbootmicroservices-72689.jpg
example.
For more detail, you can read document about spring data jpa.

ANN 2022-08-12 09:39:56
Could you please send it for me
fatihbfk 2022-08-12 10:53:56
What’s the best project structure for backend rest api
Backhere 2022-08-12 11:29:28
fatihbfk 2022-08-12 10:53:56
What’s the best project structure for backend rest api

it is the same n tier architecture

Backhere 2022-08-12 11:30:33
you can just give root folder as com.something

then for every module

com.something.module-name.servive/model/repo
etc etc

fatihbfk 2022-08-12 11:31:41
I buil at

Api
Service
Model
Repo
Utilities

fatihbfk 2022-08-12 11:31:46
Etc
fatihbfk 2022-08-12 11:32:13
But a lot of structure in the internet
fatihbfk 2022-08-12 11:34:23
Some coder sprate by model name
For example
Com.example.Employee
-EmployeeController
-EmployeeDervice
-Employee

Etc

fatihbfk 2022-08-12 11:34:39
Which one is the best and most use
fatihbfk 2022-08-12 11:34:58
Im New at java
fatihbfk 2022-08-12 11:35:39
fatihbfk 2022-08-12 11:34:23
Some coder sprate by model name
For example
Com.example.Employee
-EmployeeController
-EmployeeDervice
-Employee

Etc

EmployeeService*

Zelenskyy 2022-08-12 11:36:07
employee controller
R 2022-08-12 11:49:28
Anyone know SpringBoot
R 2022-08-12 11:49:54
springbootmicroservices-72720.jpg

R 2022-08-12 11:49:54
springbootmicroservices-72719.jpg

|