Spring Boot provides sensible defaults for many configuration properties. But we sometimes need to customize these with our case-specific values. And a common use case is changing the default port for the embedded server. To change the default port we can use the application.properties file : Or we can use the application.yml file : Here we […]
Articles taggés:Spring Boot
(SOLVED) How to Change the Default Port in Spring Boot using Java Config ?
In spring , we can configure the default port by setting the specific property when starting the application or by customizing the embedded server configuration. For that, we will set our @SpringBootApplication class : Here we changed the default Tomcat port 8080 to 8083. We can use a Command-Line Arguments to change the default port .
How to close Ubuntu Server bash without stopping my spring boot application instance ?
If you deploy a java application in Ubuntu Server and you need to close the instance of shell script without stopping your application , you need to run your application through a script, it mean don’t execute your app directedly with the command : Just create a script.sh : Then execute the script with the […]
(SOLVED) How to deploy angular 2+ front-end + spring boot back-end ?
To deploy and angular (2,8,…10) front-end application with a Spring boot Back-end follow the steps below : 1. Build your angular application First you have to build your front with the command line ng build, for that open a new Terminal in the angular project and run : after running this command , you will […]
(SOLVED) no serializer found for class org.hibernate.proxy
no serializer found for class org.hibernate.proxy.pojo.bytebuddy.bytebuddyinterceptor and no properties discovered to create beanserializer You can Ignore to produce JSON output of a property by Or If you have any lazy loaded properties having a relationship. You can use this annotation at top of the property. Example: If you still have this error, please add this […]
Solution : java.sql.SQLException : The server time zone value
The server time zone value : if you have this error using Spring boot you have to add the server Time Zone in your configuration in application.properties add this line : just after the spring.datasource.url :
(SOLVED) java.sql.SQLException: Access denied for user ‘root’@’localhost’
Access denied for user : If you have this error using Spring boot : This is because in did these mistake in the application.properties file: in spring.datasource.username you have to check if you put some space in or in : or you are using a wrrong username or password .
Déploiement d’une application Web avec Angular 7 et Spring Boot 2
Déploiement de l’application dans Tomcat Cette partie de l’article va se consacrer à la présentation du déploiement, sur un système d’exploitation Windows, de notre application Library (front-end et back-end) dans un serveur d’application, en l’occurrence Tomcat. Le déploiement que nous présenterons ici suivra un processus manuel, mais représente très exactement ce que des outils d’intégration […]
(SOLVED) The injection point has the following annotations
The injection point has the following annotations: – @org.springframework.beans.factory.annotation.Autowired(required=true) , the injection point has the following annotations: , the injection point has the following annotations if you have this error using Spring data JPA and spring boot the solution will be : you have to add the @Service annotation in you service Implement class to […]

Spring Boot Introduction + hello world example
Spring Boot hello world example: Spring framework has taken the software development industry by storm. Dependency Injection, rock solid MVC framework, Transaction management, messaging support, web-services etc are some of the aspects spring provides through its eco-system of related sub-frameworks. Convention over configuration is the most prominent key aspect Spring promotes. Spring Boot hello world […]

Spring Boot Rest API Example
Spring Boot complements Spring REST support by providing default dependencies/converters out of the box. Writing RESTful services in Spring Boot is no-different than Spring MVC. If you are a REST Client [Rest Consumer], Spring Boot provides RestTemplateBuilder that can be used to customize the RestTemplate before calling the REST endpoints. To summarize, Spring Boot based […]
Exemple Spring MicroService + Spring Boot
Exemple Spring MicroService Spring Boot : Les problématiques rencontrées par les entreprises Problème n°1 : comment faire en sorte que les applications proposées en ligne soient toujours disponibles et ne souffrent jamais de coupure ou de ralentissement, quelle que soit l’affluence des utilisateurs sur celles-ci ? Problème n°2 : les entreprises se livrent à une “guerre de la mise […]