> Spring Boot Framework Fresco Play Solutions - TECH UPDATE

Spring Boot Framework Fresco Play Solutions

 Spring Boot Framework Solutions 


Spring Boot is a Java-Based Framework for building Microservices. 
The Course Id is 55960. It is not difficult to clear the final Assignment. But of the members difficult to feel to clear the hands-on Questions. These Answers are very helpful who are stuck to clear those questions. 

1. Sorting list of Candidates






1.Employee.java
package com.example.demo.employee;
public class Employee implements Comparable<Employee> {

private String name;
private int age;
private int exp;
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public int getExp() {
return exp;
}
public void setExp(int exp) {
this.exp = exp;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Employee(String name, int age, int exp) {
super();
this.name = name;
this.age = age;
this.exp = exp;
}
public Employee() {
}
@Override
    public int compareTo(Employee emp) {
    //replace your comparator here
       return (this.getAge() - emp.getAge());
    }



    2.EmployeeController


package com.example.demo.employee;
import java.util.Collections;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
@RestController
public class EmployeeController {
@Autowired
private EmployeeService emp;
    //Put your code here
  @RequestMapping("/")
public List<Employee> getEmpList(){
    //Put your code here
    List<Employee> e = emp.getEmployees();
    Collections.sort(e);
return e;
}
}

3.EmployeeService.java
package com.example.demo.employee;

import java.util.Arrays;

import org.springframework.stereotype.Service;
import java.util.List;
import java.util.ArrayList;

@Service
public class EmployeeService {
public List<Employee> getEmployees() {
      final List<Employee> demo = new ArrayList<>();
      demo.add(new Employee("Sandhya",20,0));
      demo.add(new Employee("Kemp",24,2));
      demo.add(new Employee("Anil",22,3));
      demo.add(new Employee("Kumar",30,6));
      demo.add(new Employee("Tim",32,7));
      

      return demo;
    }
}
}


2. Accessing Values from the application. properties.file



            fresco-course = Spring Boot


3) Print contents of the list along the sublist




ContentController.java

package com.example.demo.content;

import java.util.List;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

@RestController
public class ContentController {
//Put your code here.
  @Autowired
  private ContentService cs;

  @RequestMapping("/")
  public List<Category> getContentList(){
    List<Category> c = cs.getAllContent();
    return c;
  }

}

ContentService.java

package com.example.demo.content;

import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;

import org.springframework.stereotype.Service;

@Service
public class ContentService {

    //put your code here.
  public List<Category> categories = new ArrayList<>();

public List<Category> getAllContent() {
    List<Course> courses = new ArrayList<>();
      courses.add(new Course(1,"Coursename",200,200,1001));
      courses.add(new Course(2,"Coursename",200,200,1001));
      courses.add(new Course(3,"Coursename",200,200,1001));

    List<Category> categories = new ArrayList<>();

    categories.add(new Category(1001,"Cloud Computing","network of remote servers hosted on the internet to store",courses));
    categories.add(new Category(1002,"Software","network of remote servers hosted on the internet to store",courses));
    categories.add(new Category(1003,"Networking","network of remote servers hosted on the internet to store",courses));

    return categories;
}
}

                                                                    Thank You 
Spring Boot Framework Fresco Play Solutions Spring Boot Framework Fresco Play Solutions Reviewed by TECH UPDATE on March 23, 2021 Rating: 5

61 comments:

  1. Second one giving can you help

    ReplyDelete
    Replies
    1. What help exactly, I am not understanding

      Delete
    2. sir 1st on give an error (Sorting list of Candidates) not working please help me.

      Delete
    3. for second one just type
      fresco-course = Spring Boot

      Delete
    4. what to do in 2nd question??

      Delete
  2. Teja, do you have Spring Boot API Cantabile HandsOn answers.

    ReplyDelete
    Replies
    1. U have any answers for course I'd 62653,62654,63431

      Delete
  3. Thanks bruh plzz update springboot Api cantabile hands-on plzz

    ReplyDelete
  4. Sorting list of candidates is not working pls help me

    ReplyDelete
  5. Sorting list of candidates is not working pls help me..

    ReplyDelete
  6. Do you Html css mini project

    ReplyDelete
  7. the first code isn't working it is showing build failed can you help me out?

    ReplyDelete
  8. it worked need to add } at end of Employee.java and remove } at the end of EmployeeService.java

    ReplyDelete
    Replies
    1. no its showing again errors after adding }(employee.java)&removing }(service.java)

      Delete
    2. Still didn't work. What to do now?

      Delete
  9. Hi, can you please update answers for Springboot API Cantible handson..Consuming Public APIs handson

    ReplyDelete
  10. Can we get springboot blog app mini project hands on?

    ReplyDelete
    Replies
    1. hey!
      did you got sprinboot blog mini prohect hands on?

      Delete
    2. have u got the answers

      Delete
  11. Hii sir please provide your telegram Id I just have 3 codes left in one java course kindly help me witg that please

    ReplyDelete
    Replies
    1. hii did u have all java codes ,if u have means can u help me plzz

      Delete
  12. Thanks!! It really helped me

    ReplyDelete
  13. Springboot API Cantible handson..Consuming Public APIs badly required

    ReplyDelete
    Replies
    1. hi did you get the answers for springboot api

      Delete
    2. Did you get the answer for blog app

      Delete
  14. After typing the second code ,it is showing that test cases are passed but it will show 3 errors. what to do help me as it is showing that the code is not cleared

    ReplyDelete
  15. api callible course answers please... these are a lot helpful

    ReplyDelete
  16. you are doing good work bruh! thank you.

    ReplyDelete
  17. Can u please update spring boot API Cantabile please

    ReplyDelete
  18. 3rd hands-on not working showing error plz update correct code

    ReplyDelete
  19. First one giving a compilation error.

    ReplyDelete
  20. Hi Teja could you please upload hands on on javascript essentials.

    ReplyDelete
  21. Hi I want spring restful services- mini project handson

    ReplyDelete
  22. Hi Teja, will you Plzz upload Drupal hands-on answers

    ReplyDelete
  23. Hi
    can u send me the code of 63431,63715 courses

    ReplyDelete
    Replies
    1. Hello,do you have 63431 code

      Delete
  24. we want RESTWebAPI-Springboot solution

    ReplyDelete
  25. 55976 Advanced time series analysis Handson please

    ReplyDelete
  26. Hi please give solution for this course of fresco play

    Web technologies: Mini project -Spring hands-on_E2_FP (70997)

    ReplyDelete
    Replies
    1. Hi didi u got it?

      Delete
    2. Hello Bother have you got answer for this mini project?

      Delete
  27. Please send the solution for ievolve course ids 63431, 63428 and 64904

    ReplyDelete
    Replies
    1. Hello,do you have 63431 code

      Delete
  28. Hi can you provide mini project html css code for expense tracker

    ReplyDelete
  29. Can you provide mini project html css code for expense tracker

    ReplyDelete
  30. Build a Full Stack API answer is not there

    ReplyDelete
  31. I want java8 qualis_fp hands on 56911

    ReplyDelete
  32. Please provide solution for Course Id 64904

    ReplyDelete
  33. Hi
    can u send me the code of 63431,64904 courses

    ReplyDelete
    Replies
    1. Hey did you came across the solutions for these two courses?

      Delete
  34. anyone could help me with the solución of the # course 63293. https://play.fresco.me/course/1154/progress/topic/6474/content/0

    ReplyDelete
  35. Please send 63431 course id

    ReplyDelete
  36. Do u have solution for 63431

    ReplyDelete
  37. can you provide 64904 Course Answers

    ReplyDelete
  38. Course id:66236, secure react appl using keycloak

    ReplyDelete
  39. 1st code i am getting a build path is rong

    ReplyDelete
  40. Hi please give solution for this course of fresco play

    Web technologies: Mini project -Spring hands-on_E2_FP (70997)

    ReplyDelete
    Replies
    1. Hello, did you got the solution of Web technologies: Mini project -Spring hands-on_E2_FP (70997)

      Delete
  41. Hi , can anyone help for the solution, Mentioned solution is working for :
    Create an application.properties file with properties fresco-course = Spring Boot.
    Use this property in the main class to display the course Name in java

    fresco-course = Spring Boot,
    This is not enough to run the project.

    we need to write the code in below class also.

    public class ApplicationProper {
    }

    Can anyone help on this.

    ReplyDelete

Powered by Blogger.