FilmInsert.java 553 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
package com.BDtest.controller;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import com.BDtest.repository.FilmRepository;

@Controller

public class FilmInsert {
	@Autowired
	private FilmRepository repo;
	
	@GetMapping("/insertFilms/{id}")
	public String insertFilm() {
		
		return "insertFilms";
	}
	
}