alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.88k stars 8.32k forks source link

Aliyun Java Initializr Bug or Suggestion Report #1449

Closed theonefx closed 1 year ago

theonefx commented 4 years ago

请在这个 issue 中反馈针对 start.aliyun.com 的建议或者意见; Please submit your suggestions or comments about start.aliyun.com in this issue. IMG_8969

pruidong commented 4 years ago

Spring Boot 在前几天发布了2.3.0,但是start.aliyun.com上面还是旧的版本信息,请问什么时候start.aliyun.com会更新到新版本?

theonefx commented 4 years ago

Spring Boot 在前几天发布了2.3.0,但是start.aliyun.com上面还是旧的版本信息,请问什么时候start.aliyun.com会更新到新版本?

多谢反馈,本周会完成更新

pruidong commented 4 years ago

Spring Boot 在前几天发布了2.3.0,但是start.aliyun.com上面还是旧的版本信息,请问什么时候start.aliyun.com会更新到新版本?

多谢反馈,本周会完成更新

好的.谢谢.

pruidong commented 4 years ago

快点更新把

刚看了一下,start.aliyun.com已经更新了.

yxdwind commented 4 years ago

QQ截图20200609093935 引入的路径中没有demo

theonefx commented 4 years ago

QQ截图20200609093935 引入的路径中没有demo

Done, it's has been fixed. Actually I remove demo codes about restservice, because of these code not clarity.

airclear commented 4 years ago

Aliyun Java Initializr 有开源出来吗?

caowenliang commented 4 years ago

gradle 项目 分层架构 里面module还是maven的pom文件 图片

theonefx commented 4 years ago

gradle 项目 分层架构 里面module还是maven的pom文件 图片

Copy that, I'll handle it.

cn-src commented 4 years ago

Could not find artifact com.alibaba.cola:cola-core:pom:2.0.0 in me (https://maven.aliyun.com/repository/central)

youngmkl commented 4 years ago

Could not find artifact com.alibaba.cola:cola-core:pom:2.0.0 in me (https://maven.aliyun.com/repository/central)

me too

sunzcdev commented 4 years ago

Could not find artifact com.alibaba.cola:cola-core:pom:2.0.0 in me (https://maven.aliyun.com/repository/central)

theonefx commented 4 years ago

Could not find artifact com.alibaba.cola:cola-core:pom:2.0.0 in me (https://maven.aliyun.com/repository/central)

the COLA template has be updated;

theonefx commented 4 years ago

Could not find artifact com.alibaba.cola:cola-core:pom:2.0.0 in me (https://maven.aliyun.com/repository/central)

the COLA template has be updated;

zhugw commented 4 years ago

建议

能否自定义分层的module呢 一个应用 对应前台(front) 管理后台(admin) 以及共用(common)

foo-parent
    - front # 提供接口给H5
    - common # dao 和 DO
    - admin  # 管理后台接口

目前的分层 默认如下

    <modules>
        <module>demo-api</module>
        <module>demo-dao</module>
        <module>demo-manager</module>
        <module>demo-service</module>
        <module>demo-web</module>
        <module>start</module>
    </modules>
theonefx commented 4 years ago

建议

能否自定义分层的module呢 一个应用 对应前台(front) 管理后台(admin) 以及共用(common)

foo-parent
    - front # 提供接口给H5
    - common # dao 和 DO
    - admin  # 管理后台接口

目前的分层 默认如下

    <modules>
        <module>demo-api</module>
        <module>demo-dao</module>
        <module>demo-manager</module>
        <module>demo-service</module>
        <module>demo-web</module>
        <module>start</module>
    </modules>

Good idea, I will consider this suggestion.

gundamff commented 4 years ago

gradle, 分层架构 父项目是build.gradle 生成的子项目里面都是pom.xml

ghost commented 4 years ago

能否在生成的时候指定发不到阿里云的私服呢,当然也可以是其他的私服

theonefx commented 4 years ago

能否在生成的时候指定发不到阿里云的私服呢,当然也可以是其他的私服

Good idea, I will consider this suggestion.

xkcoding commented 4 years ago

应用架构选择 COLA 下载下来之后,start 模块的 pom 文件存在问题,缺少一级 plugin 节点

<plugins>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>repackage</id>
            <goals>
                <goal>repackage</goal>
            </goals>
            <configuration>
                <mainClass>com.aliyun.cola.demo.DemoApplication</mainClass>
            </configuration>
        </execution>
    </executions>
</plugins>

需要改成

<plugins>
   <plugin>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-maven-plugin</artifactId>
       <executions>
           <execution>
               <id>repackage</id>
               <goals>
                   <goal>repackage</goal>
               </goals>
               <configuration>
                   <mainClass>com.aliyun.cola.demo.DemoApplication</mainClass>
               </configuration>
           </execution>
       </executions>
   </plugin>
</plugins>
theonefx commented 4 years ago

应用架构选择 COLA 下载下来之后,start 模块的 pom 文件存在问题,缺少一级 plugin 节点

<plugins>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>repackage</id>
            <goals>
                <goal>repackage</goal>
            </goals>
            <configuration>
                <mainClass>com.aliyun.cola.demo.DemoApplication</mainClass>
            </configuration>
        </execution>
    </executions>
</plugins>

需要改成

<plugins>
   <plugin>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-maven-plugin</artifactId>
       <executions>
           <execution>
               <id>repackage</id>
               <goals>
                   <goal>repackage</goal>
               </goals>
               <configuration>
                   <mainClass>com.aliyun.cola.demo.DemoApplication</mainClass>
               </configuration>
           </execution>
       </executions>
   </plugin>
</plugins>

done

GenshenWang commented 4 years ago

【Bug Report】 Hi, one bug I have found while using Aliyun Java Initializr(https://start.aliyun.com/) to create Spring Boot project, here is the bug detail: 4DC2C2AB-9100-4E1B-B61E-635E05597DD0

thinwind commented 4 years ago

【Bug Report】 自动生成的application.properties中,spring.resources.static_locations应该改成spring.resources.static-locations

theonefx commented 4 years ago

【Bug Report】 自动生成的application.properties中,spring.resources.static_locations应该改成spring.resources.static-locations

done

thc75 commented 4 years ago

根目录能否加一个readme.md简要说明每个模块的作用

theonefx commented 3 years ago

根目录能否加一个readme.md简要说明每个模块的作用

good idea

youngledo commented 3 years ago

高级选项中的项目描述,输入着文字光标就跳转到项目名称上去了!

theonefx commented 3 years ago

高级选项中的项目描述,输入着文字光标就跳转到项目名称上去了!

already fixed

theonefx commented 3 years ago

【Bug Report】 Hi, one bug I have found while using Aliyun Java Initializr(https://start.aliyun.com/) to create Spring Boot project, here is the bug detail: 4DC2C2AB-9100-4E1B-B61E-635E05597DD0

already fixed

mosence commented 3 years ago

maven项目描述会中文乱码

thc75 commented 3 years ago

maven项目描述会中文乱码

pom.xml有中文会乱码

Ges0ng commented 3 years ago

勾选上了以后创建项目pom文件还是没有加入依赖,是我哪里没设置好么?

zhangyq233 commented 3 years ago

image

创建的dubbo项目报错,折腾一整天了,

第一个错误是启动报错: image 解决方法:移除spring-cloud-openfeign-core依赖

第二个错误是消费端启动报错: image 折腾好久了,也不知道怎么搞

ppzzyy11 commented 3 years ago

maven项目描述会中文乱码

你好能详细复述一下乱码复现过程么?这边需要复现

ppzzyy11 commented 3 years ago

maven项目描述会中文乱码

pom.xml有中文会乱码

您名描述一下复现过程么?

ppzzyy11 commented 3 years ago

image

创建的dubbo项目报错,折腾一整天了,

第一个错误是启动报错: image 解决方法:移除spring-cloud-openfeign-core依赖

第二个错误是消费端启动报错: image 折腾好久了,也不知道怎么搞

是spring-boot-devtools导致的,去除这个依赖之后,项目都可以跑起来了

Ges0ng commented 3 years ago

是的,我也发现了,好像不勾选devtools也不会出现没自动加上依赖的问题

zhangyq233 commented 3 years ago

image 创建的dubbo项目报错,折腾一整天了, 第一个错误是启动报错: image 解决方法:移除spring-cloud-openfeign-core依赖 第二个错误是消费端启动报错: image 折腾好久了,也不知道怎么搞

是spring-boot-devtools导致的,去除这个依赖之后,项目都可以跑起来了

这个坑折腾了我好几天,哎

mosence commented 3 years ago

maven项目描述会中文乱码

pom.xml有中文会乱码

您名描述一下复现过程么? 步骤: 1、使用 https://start.aliyun.com 创建maven脚手架 2、项目基本信息.高级选项.项目描述中填写中文 3、应用架构选择COLA,示例代码选择Mybatis+WEB 4、下载/预览代码就会出现乱码了

@ppzzyy11

Ges0ng commented 3 years ago

开发工具全勾上,然后接下来哪怕是Spring Web 都没有加上依赖,包括目录结构中的静态资源文件夹等等. 我尝试了下单独勾选lombok就正常了. 网页端创建手脚架却是没问题,只有idea中创建会这样.没完全加载勾选的东西 1 2

`<?xml version="1.0" encoding="UTF-8"?> <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0
<groupId>com.example</groupId>
<artifactId>fuxian</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>fuxian</name>
<description>Demo project for Spring Boot</description>

<properties>
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <spring-boot.version>2.3.4.RELEASE</spring-boot.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-dependencies</artifactId>
            <version>${spring-boot.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
                <encoding>UTF-8</encoding>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <version>2.3.4.RELEASE</version>
            <configuration>
                <mainClass>com.example.fuxian.FuxianApplication</mainClass>
            </configuration>
            <executions>
                <execution>
                    <id>repackage</id>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

`

ppzzyy11 commented 3 years ago

maven项目描述会中文乱码

pom.xml有中文会乱码

您名描述一下复现过程么? 步骤: 1、使用 https://start.aliyun.com 创建maven脚手架 2、项目基本信息.高级选项.项目描述中填写中文 3、应用架构选择COLA,示例代码选择Mybatis+WEB 4、下载/预览代码就会出现乱码了

@ppzzyy11

已经修好了,多谢反馈🙏后面找时间发上去

ppzzyy11 commented 3 years ago

groupId

没有成功复现,您的IDE是啥子IDE

Ges0ng commented 3 years ago

groupId

没有成功复现,您的IDE是啥子IDE

IDEA2020.2.3 可能我的idea有问题吧,有时间重装一下

cn-src commented 3 years ago

请及时保持版本是最新的!!!真的,没别的要求了,只希望解决官方的国外网络的问题。 这是最基本的诉求了,至于其他功能,可以慢慢来,都不急。 阿里的,更新实在是太慢了。 :laughing::laughing::laughing::laughing::laughing::laughing::laughing::laughing::laughing::laughing:

hduyyg commented 3 years ago

可以指定gradle的版本号嘛?

jacovt commented 3 years ago

Hello Everyone.

First of all, awesome job on the work that went into the Initializr! I am interested in seeing how you did the multi-module setup using the initializr (we would like to do something similar for our internal use), so I was wondering if the initializr code is publicly available so that I can have a look? Does anyone know?

Thank you in advance! ---Jaco

liuzijianone commented 3 years ago

请问在创建项目时选择了需要使用的依赖,但是最终生成的pom.xml文件很多依赖都没有,仍然需要手动导入是什么原因啊

ppzzyy11 commented 3 years ago

请问在创建项目时选择了需要使用的依赖,但是最终生成的pom.xml文件很多依赖都没有,仍然需要手动导入是什么原因啊

用IDEA的时候会有这个bug,估计下周开始修

liuzijianone commented 3 years ago

请问在创建项目时选择了需要使用的依赖,但是最终生成的pom.xml文件很多依赖都没有,仍然需要手动导入是什么原因啊

用IDEA的时候会有这个bug,估计下周开始修

好的,谢谢

ppzzyy11 commented 3 years ago

请问在创建项目时选择了需要使用的依赖,但是最终生成的pom.xml文件很多依赖都没有,仍然需要手动导入是什么原因啊

用IDEA的时候会有这个bug,估计下周开始修

好的,谢谢

您给下自己创建项目的环境,IDEA版本啥的