alibaba / alibaba/cloud-native-app-initializer

Could not build RocketMQ example code on Spring Boot 3.0

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
308
Forks
107
PR merge metrics
No merged PRs in 30d

Description

When I am trying to build it with Spring Boot 3.0 and Java 17, the following error has been raised:

```
~/Downloads/demo/src/main/java/com/example/demo/demos/rocketmq/producer/MySource.java:3:51
java: cannot find symbol
symbol: class Output
location: package org.springframework.cloud.stream.annotation
```

It looks like in the latest Spring Cloud Stream 4.0.0 the annotation way has been deprecated.

Contributor guide

Open the contributing guide

Research direction

Start with the failing MySource.java example and reproduce the build using Spring Boot 3.0, Java 17, and Spring Cloud Stream 4.0.0. Check the reported missing Output annotation and its surrounding usage; done means the RocketMQ example builds without that compilation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.