title: Spring boot application executes without any error but not creating any tables in the backend
body: <p>I have created a spring boot and RestAPI application project. Everything runs and executes but it is not creating any table in the backend (MySQL). It is not showing any error in the console too. I am new to spring boot and APIs.</p>
  <p>Below is the code in my:</p>
  <p><strong>application.properties :</strong></p>
  <pre><code>
  spring.jpa.hibernate.ddl-auto=update
  spring.datasource.url=jdbc:mysql://localhost:3306/EjikeDB?createDatabaseIfNotExist=true&amp;&amp;autoReconnect=true&amp;verifyServerCertificate=false&amp;useSSL=false&amp;requireSSL=false serverTimezone=UTC
  spring.datasource.username=root
  spring.datasource.password=MacRoot31
  spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  spring.jpa.generate-ddl=true
  
  
  spring.jpa.show-sql=true
  
  
  spring.datasource.initialization-mode=always
  
  ########### SMTP Email Properties ###################
  spring.mail.host=smtp.mailtrap.io
  spring.mail.port=465
  spring.mail.username=f26e44090838e5
  spring.mail.password=b2a684f17dbfc2
  spring.mail.protocol=smtp
  
  
  ############ JWT Properties #####################
  jwt.expiration.time=90000
  </code></pre>
  <p>and</p>
  <p><strong>User.java :</strong></p>
  <pre><code>
  import java.util.List;
  
  import javax.persistence.Entity;
  
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  
  import javax.persistence.Id;
  import javax.persistence.OneToMany;
  import javax.persistence.Table;
  import javax.validation.constraints.NotBlank;
  import java.time.Instant;
  
  import lombok.AllArgsConstructor;
  import lombok.Data;
  import lombok.NoArgsConstructor;
  
  
  //@EnableAutoConfiguration
  @EntityScan
  @Data
  @AllArgsConstructor
  @NoArgsConstructor
  @Entity
  @Table(name = &quot;MarketplaceUser&quot;)
  public class User {
  
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      private int userid;
      private String firstname;
      private String lastname;
      @NotBlank(message = &quot;Username is required&quot;)
      private String userName;
      @NotBlank(message = &quot;Email is required&quot;)
      private String email;
      @NotBlank(message = &quot;Password is required&quot;)
      private String password;
      private String phoneNumber;
      private String country;
      private String provinceState;
      private String city;
      private String street;
      @NotBlank(message = &quot;Postcode is required&quot;)
      private String postalCode;
      private String roles;
      @OneToMany(mappedBy = &quot;user&quot;)
      private List&lt;Product&gt; product;
      private Instant created;
      private boolean enabled;
      
      
      
      
      
      
      
      
  
  }
  </code></pre>
  <p>I tried adding the <strong>spring.jpa.hibernate.ddl-auto=update</strong>
  and
  <strong>spring.jpa.hibernate.ddl-auto=create</strong> both
  aswell as</p>
  <p>createDatabaseIfNotExist=true&amp;&amp;autoReconnect=true&amp;verifyServerCertificate=false&amp;useSSL=false&amp;requireSSL=false to my application.properties file.</p>
  <p>But nothing changed. And the main issue being there's no error displayed in the console.</p>
  <p><a href="https://i.stack.imgur.com/kRPiz.png" rel="nofollow noreferrer">This is the project structure. If in case there's any error in this.</a></p>