-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Steps to Upload in Examly: 👍
step 1 : - Go to springapp/src/main/java
step 2 : - Right click, create new Folders(Packages) as Controller, Dao, Model, ServiceInterface, ServiceInterfaceImplementation.
step 3 : - Right click on each folder, Create respective files on each folder as MainController.java, CustomerRepository.java, LogModel.java, CustomerService.java, CustomerServiceImplementation.java and copy down my code and paste it in respective files.
step 4 : - Note: Please Check carefully whether you have imported all the packages correctly in each files
step 5 : - open pom.xml file and add below dependencies
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
step 6 : - Open new terminal and type cd springapp, press enter.
step 7 : - Next, type in the terminal as mysql -u root --protocol=tcp -p, press enter. It will configure the mysql and ask for password.
step 8 : - Type the password as examly, press enter. You will get Mysql[(none)] in terminal.
step 9 : - Then type as create database customerlog; and press enter. Your database will be build successfully.
step 10 : - Then Go to springapp/src/main/resources/application.properties file and replace database url with spring.datasource.url=jdbc:mysql://localhost:3306/customerlog
step 11 : - Atlast rename springapp to application and then check whether the application runs successfully by the command 👍
- Builds the project successfully 💯
- Runs and check whether there is any error while building 👎
step 12 : - Then Run Test cases and if all the testcases passed, submit the project 👍