Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 16:18
    sivaprasadreddy edited #806
  • Jan 31 2019 16:18
    sivaprasadreddy edited #806
  • Jan 31 2019 16:17
    sivaprasadreddy opened #806
  • Jan 31 2019 15:32
  • Jan 31 2019 15:14

    snicoll on new-generator

    Adapt to latest API change Move InitializrDefaultStarterBu… (compare)

  • Jan 31 2019 10:42

    snicoll on new-generator

    Switch project structure to use… (compare)

  • Jan 31 2019 10:34

    snicoll on master

    Upgrade to JUnit 5.4.0-RC1 Split metadata specific excepti… (compare)

  • Jan 31 2019 09:43

    snicoll on master

    Initiate 0.8.0.BUILD-SNAPSHOT v… (compare)

  • Jan 31 2019 08:13
    phoenigm starred spring-io/initializr
  • Jan 31 2019 03:43
  • Jan 31 2019 03:04

    mbhave on new-generator

    Adapt tests to use new API Customize build version based o… (compare)

  • Jan 30 2019 19:28
    mbhave closed #805
  • Jan 30 2019 19:27

    mbhave on master

    Fix generate release notes scri… (compare)

  • Jan 30 2019 19:26
    mbhave edited #805
  • Jan 30 2019 19:26
    mbhave commented #805
  • Jan 30 2019 19:05
    snicoll milestoned #805
  • Jan 30 2019 19:05
    snicoll labeled #805
  • Jan 30 2019 19:05
    snicoll assigned #805
  • Jan 30 2019 19:05
    snicoll opened #805
  • Jan 30 2019 19:04
    snicoll milestoned #804
Stéphane Nicoll
@snicoll
Thanks @tgeens. @afanasevek, please ask such questions on #spring-boot
afanasevek
@afanasevek
@tgeens thank you :)
shreyasprabhu121
@shreyasprabhu121
Hi guys, is there a way where I can capture the Project Description and Print it in my custom-initializer console when a new project is created?
Example:- my custom-initializer is running on port 8080 and whenever I create a new project out of it, all the new Project Details like groupid, artifactid must be printed in my custom-initializer console.
thank you.
Stéphane Nicoll
@snicoll
Hello. Not sure what you mean by “console"
shreyasprabhu121
@shreyasprabhu121
Hi, lets just say i just want to capture the new project details like atrifactid, groupid etc,
Stéphane Nicoll
@snicoll
I understood what you’re trying to capture. What is a “custom initializr console”?
shreyasprabhu121
@shreyasprabhu121
sry, i meant to say IDE terminal
Stéphane Nicoll
@snicoll
ProjectDescription is a bean in the project generation context you can inject like any other bean.
Ketan
@ketangit
Is it possible to run start.spring.io (initializr + WebUI) behind the company firewall ? for-example mycomany.com/start. I am not able to load any javascript as it is looking at / and not in start/
1 reply
Michael Burris
@michaelburris
@Bean
public CustomProjectGenerationController projectGenerationController(InitializrMetadataProvider metadataProvider,
        ApplicationContext applicationContext) {
    ProjectGenerationInvoker<ProjectRequest> projectGenerationInvoker = new ProjectGenerationInvoker<>(
            applicationContext, new CustomProjectRequestToDescriptionConverter());
    return new CustomProjectGenerationController(metadataProvider, projectGenerationInvoker);
}
I have tried to inject a bean that will call my CustomProjectGenerationController as described in the reference guide. I have a @ProjectGenerationConfiguration class that contains this bean. Other Beans (contributors, and custimomizers) are called fine during project generation. However, I can not get my CustomProjectGernationController.projectRequest(). The @ProjectGenerationConfiguration class has been added to /start-site/src/main/resources/META-INF/spring.factories
11 replies
Toon Geens
@tgeens
This message was deleted
(whoops, replied to a very old message)
Jon McEwen
@jonmcewen
Hello. I'm trying to create a custom initializr, but when I run the initializr-service-sample and curl http://localhost:8080/starter.zip -o demo.zip I just get java.lang.IllegalArgumentException: Text must not be null. I expect I missed something obvious
Time to read the contributing guidelines :-)
Jon McEwen
@jonmcewen
If I add -d bootVersion=2.4.4 I get a NPE
Jon McEwen
@jonmcewen
added boot-versions to application.yml and now it works :+1:
Stéphane Nicoll
@snicoll
The sample is obviously outdated (and that NPE is odd). Thanks for letting us know, I’ve created spring-io/initializr#1214
Longevity tips
@BeyondTheBlade
clone https://github.com/spring-io/start.spring.io.git , I run StartApplication with 8080 port. but 'http://localhost:8080/' is Whitelabel Error Page
Debug the project, I find HomeController home method "forward:index.html" is not current skip
I see 'https://start.spring.io/' version not like github master version ,github is old version?
Longevity tips
@BeyondTheBlade
Sorry I‘m solve it, error reason is 'maven is not install'
Rosa Eka Pratama
@rosaekapratama_gitlab

Hi i want to add more field in PageRequest, i followed this ref https://docs.spring.io/initializr/docs/current/reference/html/#create-instance-advanced-config-custom-project-request

But it seems method projectRequest() In ProjectGenerationController not called at all, am i missing something?

Rosa Eka Pratama
@rosaekapratama:matrix.org
[m]
Above attached a couple of its code
Ananya5486
@Ananya5486
Hello, I have changed the code to generate appliction.yml file instead of application.properties file, the genrated zip file contains the application.yml file. but the in the "Explore" option am not able to open the .yml file(disabled). can anyone suggest me how to enable that file.
10 replies
Ananya5486
@Ananya5486
image.png
Tareq K
@Plomboe
Hi, I just have a question regarding the initial setup. After selecting to add dependencies in the initializr (Web, JPA, etc), how does the Initializr then add those dependencies? Is it just injected within the project's pom.xml file? I'm trying to find the script that injects dependencies selected within the pom.xml
2 replies
Sid N
@NSidharthaN
Hi ,
https://start.spring.io/-->Selecting gradle,Language-Java , Java-16 --> Turns out with build.gradle file with sourceCompatibility = '11',although i select java-16 version . Is that an issue?
2 replies
Ananya5486
@Ananya5486
Hi, I am facing issue when I choose Gradle option to generate project. Getting the below error.
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'maintenanceModuleHelpDocumentCustomizer' defined in class path resource [io/spring/start/site/extension/dependency/springcloud/SpringCloudProjectGenerationConfiguration.class]: Unsatisfied dependency expressed through method 'maintenanceModuleHelpDocumentCustomizer' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gradleBuild' defined in class path resource [io/spring/initializr/generator/spring/build/gradle/GradleProjectGenerationConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.spring.initializr.generator.buildsystem.gradle.GradleBuild]: Factory method 'gradleBuild' threw exception; nested exception is java.lang.IllegalStateException: Bom 'org.springframework.boot:spring-boot-dependencies:2.2.0.RELEASE' could not be resolved 2021-03-26 14:59:54.442 ERROR 13660 --- [nio-8081-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'maintenanceModuleHelpDocumentCustomizer' defined in class path resource
1 reply
Any suggestion on resolving this issue
Onur GÜRSOY
@MuhendisBey

Hello Everyone,
I want to ask something about spring initializr.

I want to change default folder structure and i want to add new some java class, as you guess, they are controller class service class etc.

How can i do this ?
Is it possible ?
I can't see any reference or i couldn't understand it.
Mostly, there is reference about that how we can add new or custom dependency.
I want to change folder structure and add new java classes.

Many thanks in advance,
With best regards,

2 replies
izalymov
@izalymov
Hello! I am working on a custom spring initlizr implementation and I have some questions:
Can copyright information be assigned to a new project generated by Spring Inintilzr? This information should be applyed for any new source files of this project.
As far I understand It should be presetting for the IDE (Intelij IDEA or Eclipse). maybe someone has such experience?
2 replies
brunchey
@brunchey
Hello, I am manually adding a few dependencies that are already in the configured dependency list using a BuildCustomizer.
public void customize(Build build) { if (!build.dependencies().has("my-dependency") { build.dependencies.add("my-dependency"); } }
This works great. But when I do this, the links configured for the dependency I am adding never make it into the generated README.md. Any ideas?
Thanks
brunchey
@brunchey
Sorry I meant HELP.md
Andy Wilkinson
@wilkinsona
@brunchey The contributions to the help document are typically made based on the requested dependencies via the use of @ConditionalOnRequestedDependency. Requested dependencies do not include those added via a build customizer.
Stéphane Nicoll
@snicoll
ProjectDescriptionCustomizer would let you add those sooner.
王存露
@lnsane
Why not implement it in the form of template file variables? Instead, it takes the form of programming and metadata. I feel very complicated!
aasifkhan7
@aasifkhan7
can i download a spring boot 1.5 project using spring initializr?
1 reply
marc06210
@marc06210
Hello, I have customized the initializer with new project types. when initializing a new project on IntelliJ those new types are available but they do not show up in the STS/eclipse project creation popup. has anyone faced this situation? is it something that can be handled here or should I see with STS/eclipse team?
thanks for your answer
Marc
4 replies
hannahnov
@hannahnov
Hello, I was wondering if there was a way to interact with the Initializer API that would allow me to create multiple projects under different names using some kind of script. (I'm part of a training team and each new pod creates their own project but the dependencies/configs are all the same and we're looking for ways to automate the entire process).
1 reply
ashwaniponia
@ashwaniponia
Hello, I was building a custom starter like start.spring.io I wanted to know is there a way to set the parent in pom file without changing the application.yml file like I wanted the user to select the version of parent to be used.
1 reply
ashwaniponia
@ashwaniponia
Can we send json request to spring initializr ?
guanyingjie
@guanyingjie
Hello I'm new to springboot,and I download a demo from https://start.spring.io/ and use the gradle tool to build , but when I run the gradle build ,I can't success to build the project ,this. is the error message
  • What went wrong:
    Plugin [id: 'org.springframework.boot', version: '2.4.2'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)

  • Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.4.2')
    Searched in the following repositories:
    Gradle Central Plugin Repository
2 replies
Gastón Freire
@gaston-freire
Hello everyone. I'm configuring an initializr instance and one of my custom dependencies needs to add an attribute to the @SpringBootApplication annotation in the main class (exclude = SomeClass.class). I'm extending MainApplicationTypeCustomizer<TypeDeclaration> but I can't find a way to modify the existing "org.springframework.boot.autoconfigure.SpringBootApplication" annotation. Any advice on how to achieve this? Thanks in advance.
3 replies
arvinshenoy
@arvinshenoy
Hello All, I am trying to create microservice using the spring-initializer . I am following the instructions given here https://docs.spring.io/initializr/docs/current/reference/html/#project-generation-overview . I added initializr-web and initializr-generator-spring to the pom.xml and on the browser when tried to load localhost:8080, it gave me a 404 whitelabel error. Any help would be appreciated