Commit f66b4bb5 authored by Kyle Muldoon's avatar Kyle Muldoon

finished up boilerplate

parent 38e6d8a1
package com.StudentServices.MarksService.controller;
import com.StudentServices.MarksService.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -11,4 +13,6 @@ import org.springframework.web.bind.annotation.RestController;
public class MarksController {
@Autowired StudentService studentService;
}
package com.StudentServices.MarksService.repository;
public interface StudentRepository {
import com.StudentServices.MarksService.model.Student;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface StudentRepository extends MongoRepository <Student, String> {
}
package com.StudentServices.MarksService.service;
import com.StudentServices.MarksService.repository.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class StudentService {
@Autowired StudentRepository studentRepository;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment