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;
}
}
}
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
Reviewed by TECH UPDATE
on
March 23, 2021
Rating:

Second one giving can you help
ReplyDeleteWhat help exactly, I am not understanding
Deletesir 1st on give an error (Sorting list of Candidates) not working please help me.
Deletefor second one just type
Deletefresco-course = Spring Boot
what to do in 2nd question??
DeleteTeja, do you have Spring Boot API Cantabile HandsOn answers.
ReplyDeleteU have any answers for course I'd 62653,62654,63431
Deletedid u got the answer for course id 63431
DeleteOkay soon, I will update.
ReplyDeleteSpring boot api answer pls
DeleteThanks bruh plzz update springboot Api cantabile hands-on plzz
ReplyDeleteSorting list of candidates is not working pls help me
ReplyDeleteSorting list of candidates is not working pls help me..
ReplyDeleteDo you Html css mini project
ReplyDeletethe first code isn't working it is showing build failed can you help me out?
ReplyDeleteit worked need to add } at end of Employee.java and remove } at the end of EmployeeService.java
ReplyDeleteno its showing again errors after adding }(employee.java)&removing }(service.java)
DeleteStill didn't work. What to do now?
DeleteHi, can you please update answers for Springboot API Cantible handson..Consuming Public APIs handson
ReplyDeleteCan we get springboot blog app mini project hands on?
ReplyDeletehey!
Deletedid you got sprinboot blog mini prohect hands on?
have u got the answers
DeleteHii sir please provide your telegram Id I just have 3 codes left in one java course kindly help me witg that please
ReplyDeletehii did u have all java codes ,if u have means can u help me plzz
DeleteThanks!! It really helped me
ReplyDeleteSpringboot API Cantible handson..Consuming Public APIs badly required
ReplyDeletehi did you get the answers for springboot api
DeleteDid you get the answer for blog app
DeleteAfter 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
ReplyDeleteapi callible course answers please... these are a lot helpful
ReplyDeleteyou are doing good work bruh! thank you.
ReplyDeleteCan u please update spring boot API Cantabile please
ReplyDelete3rd hands-on not working showing error plz update correct code
ReplyDeleteFirst one giving a compilation error.
ReplyDeleteHi Teja could you please upload hands on on javascript essentials.
ReplyDeleteHi I want spring restful services- mini project handson
ReplyDeleteHi Teja, will you Plzz upload Drupal hands-on answers
ReplyDeleteHi
ReplyDeletecan u send me the code of 63431,63715 courses
Hello,do you have 63431 code
Deletewe want RESTWebAPI-Springboot solution
ReplyDelete55976 Advanced time series analysis Handson please
ReplyDeleteHi please give solution for this course of fresco play
ReplyDeleteWeb technologies: Mini project -Spring hands-on_E2_FP (70997)
Hi didi u got it?
DeleteHello Bother have you got answer for this mini project?
DeletePlease send the solution for ievolve course ids 63431, 63428 and 64904
ReplyDeleteHello,do you have 63431 code
DeleteHi can you provide mini project html css code for expense tracker
ReplyDeleteCan you provide mini project html css code for expense tracker
ReplyDeleteBuild a Full Stack API answer is not there
ReplyDeleteI want java8 qualis_fp hands on 56911
ReplyDeletePlease provide solution for Course Id 64904
ReplyDeleteHi
ReplyDeletecan u send me the code of 63431,64904 courses
Hey did you came across the solutions for these two courses?
Deleteanyone could help me with the solución of the # course 63293. https://play.fresco.me/course/1154/progress/topic/6474/content/0
ReplyDeletePlease send 63431 course id
ReplyDeleteDo u have solution for 63431
ReplyDeletecan you provide 64904 Course Answers
ReplyDeleteCourse id:66236, secure react appl using keycloak
ReplyDelete1st code i am getting a build path is rong
ReplyDeleteHi please give solution for this course of fresco play
ReplyDeleteWeb technologies: Mini project -Spring hands-on_E2_FP (70997)
Hello, did you got the solution of Web technologies: Mini project -Spring hands-on_E2_FP (70997)
DeleteHi , can anyone help for the solution, Mentioned solution is working for :
ReplyDeleteCreate 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.
package com.example.demo;
Deleteimport org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Value;
@SpringBootApplication
@RestController
public class ApplicationProper {
@Value("${fresco-course}")
private String courseName;
public static void main(String[] args) {
SpringApplication.run(ApplicationProper.class, args);
}
@RequestMapping("/")
public String getCourseName(){
return courseName;
}
}