@Entity @Table(name="customer") @Data @NoArgsConstructor public class Customer { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private String firstName; private String lastName; private String email; }
spring.mvc.view.prefix=/WEB-INF/pages/ spring.mvc.view.suffix=.jsp #Setting the contextPath for the application server.servlet.context-path=/CRM #DataSource configuration(hikaricp) spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url = jdbc:mysql:///javafullstack spring.datasource.username = root spring.datasource.password = root #JPA -hibernate properties spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect spring.jpa.generate-ddl=true
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)