mirror of
https://github.com/Febbweiss/springboot-react-webpack.git
synced 2026-03-04 14:15:36 +00:00
Refactoring: project and java package
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"name": "catalog-ui",
|
||||
"name": "springboot-react-webpack-demo",
|
||||
"version": "1.0.0",
|
||||
"description": "BFF demo",
|
||||
"dependencies": {
|
||||
"bootstrap": "^3.3.6",
|
||||
"jquery": "^2.2.2",
|
||||
|
||||
6
pom.xml
6
pom.xml
@@ -1,11 +1,11 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.opengroupe.cloud.saas</groupId>
|
||||
<artifactId>catalog-ui</artifactId>
|
||||
<groupId>fr.pavnay</groupId>
|
||||
<artifactId>springboot-react-webpack-demo</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>UI service project</name>
|
||||
<description>Default tools to build UI BFF</description>
|
||||
<description>A demo project with Spring Boot, React and Webpack</description>
|
||||
<packaging>${packaging.type}</packaging>
|
||||
<url>http://www.open-groupe.com</url>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.opengroupe.cloud.saas;
|
||||
package fr.pavnay.demo.springboot.react;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.opengroupe.cloud.saas.domain;
|
||||
package fr.pavnay.demo.springboot.react.domain;
|
||||
|
||||
public class Comment {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.opengroupe.cloud.saas.rest;
|
||||
package fr.pavnay.demo.springboot.react.rest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -9,8 +9,8 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.opengroupe.cloud.saas.domain.Comment;
|
||||
import com.opengroupe.cloud.saas.service.CommentService;
|
||||
import fr.pavnay.demo.springboot.react.domain.Comment;
|
||||
import fr.pavnay.demo.springboot.react.service.CommentService;
|
||||
|
||||
@RestController
|
||||
public class CommentController {
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.opengroupe.cloud.saas.service;
|
||||
package fr.pavnay.demo.springboot.react.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -8,7 +8,7 @@ import javax.annotation.PostConstruct;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.opengroupe.cloud.saas.domain.Comment;
|
||||
import fr.pavnay.demo.springboot.react.domain.Comment;
|
||||
|
||||
@Component
|
||||
public class CommentService {
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.opengroupe.cloud.saas.util;
|
||||
package fr.pavnay.demo.springboot.react.util;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.opengroupe.cloud.saas.web;
|
||||
package fr.pavnay.demo.springboot.react.web;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -11,9 +11,10 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.opengroupe.cloud.saas.domain.Comment;
|
||||
import com.opengroupe.cloud.saas.service.CommentService;
|
||||
import com.opengroupe.cloud.saas.util.JavaScriptEngine;
|
||||
|
||||
import fr.pavnay.demo.springboot.react.domain.Comment;
|
||||
import fr.pavnay.demo.springboot.react.service.CommentService;
|
||||
import fr.pavnay.demo.springboot.react.util.JavaScriptEngine;
|
||||
|
||||
@Controller
|
||||
public class ViewController {
|
||||
Reference in New Issue
Block a user