spring-cli icon indicating copy to clipboard operation
spring-cli copied to clipboard

Issue refactoring to `com.example` from `com.example.graphql

Open markpollack opened this issue 2 years ago • 0 comments

When using the catalog

spring catalog add gs https://github.com/rd-1-2022/spring-gs-catalog

and executing

spring:>boot new --from graphql --name demo
Using project name demo
Using package name com.example
Cloning project from https://github.com/rd-1-2022/rpt-spring-graphql


Refactoring to package name com.example
Project demo created in directory demo

The project is not correctly refactored from the com.example.graphql package name which is what is contained in the graphql repository here - https://github.com/rd-1-2022/rpt-spring-graphql

There is still the three part package directory structure, yet import statements have been changed to two parts inside class files.

package com.example.graphql.service;

import com.example.model.Coffee;
import com.example.model.Size;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicInteger;

@Service
public class CoffeeService {


The issue is that

import com.example.model.Coffee;
import com.example.model.Size;

don't exist.

markpollack avatar Aug 15 '22 19:08 markpollack