#7 -- move news classes to different package
This commit is contained in:
parent
27ff4a3f4e
commit
6a553a3330
BIN
data/db.mv.db
BIN
data/db.mv.db
Binary file not shown.
@ -9,7 +9,7 @@ package ru.ulstu.controller;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import ru.ulstu.service.NewsService;
|
||||
import ru.ulstu.news.NewsService;
|
||||
|
||||
@Controller
|
||||
public class IndexController {
|
||||
|
@ -3,7 +3,7 @@ package ru.ulstu.meeting;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import ru.ulstu.service.NewsService;
|
||||
import ru.ulstu.news.NewsService;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
package ru.ulstu.model;
|
||||
package ru.ulstu.news;
|
||||
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import ru.ulstu.model.BaseEntity;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Lob;
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
package ru.ulstu.controller;
|
||||
package ru.ulstu.news;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.security.access.annotation.Secured;
|
||||
@ -17,10 +17,8 @@ import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import ru.ulstu.model.News;
|
||||
import ru.ulstu.model.OffsetablePageRequest;
|
||||
import ru.ulstu.model.UserRoleConstants;
|
||||
import ru.ulstu.service.NewsService;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.io.IOException;
|
@ -1,9 +1,8 @@
|
||||
package ru.ulstu.repository;
|
||||
package ru.ulstu.news;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import ru.ulstu.model.News;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,10 +1,9 @@
|
||||
package ru.ulstu.service;
|
||||
package ru.ulstu.news;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import ru.ulstu.model.News;
|
||||
import ru.ulstu.repository.NewsRepository;
|
||||
import ru.ulstu.service.FileUtil;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.IOException;
|
Loading…
Reference in New Issue
Block a user