Comments (4)
Any chance to publish minimal setup/project to reproduce the issue?
from rxjava-spring-boot-starter.
Hi jmnarloch, thanks for reply,
I use Spring Data Rest JPA over spring boot.
I think its minimal Gradle dependencies:
compile("org.springframework.boot:spring-boot-starter-data-rest") {
exclude module: "spring-boot-starter-tomcat"
exclude module: "tomcat-embed-el"
}
compile("org.springframework.data:spring-data-rest-webmvc:2.5.0.M1")
compile("org.springframework.boot:spring-boot-starter-jetty")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile 'com.h2database:h2:1.4.191'
Probably need create repository and entity classes.
Repo can looks like:
public interface ClaimReasonRepository extends PagingAndSortingRepository<ClaimReason, Integer> { }
Entity:
@SuppressWarnings("DefaultAnnotationParam") @Entity public class ClaimReason { @Id @Column(name = "id_cat", nullable = false) private Integer reasonId; }
Then, create controller, but mark it not with @RestController but with @RepositoryRestController
Then, create any web method that returns observable/single and call it. In my case exception appears. If I use @RestController, everything works ok.
from rxjava-spring-boot-starter.
Got the same problem only for io.reactive.Single return type when using the netflix-core library. I've created a pull request which fixing the issue.
#11
from rxjava-spring-boot-starter.
with Spring 5, try changing your URL of your web service to .json! that is the right fix. great details here http://stick2code.blogspot.com/2014/03/solved-orgspringframeworkwebhttpmediaty.html
from rxjava-spring-boot-starter.
Related Issues (8)
- Configuration to use ObservableReturnValueHandler HOT 10
- Completable return type HOT 1
- May you allow fork of this repository? HOT 1
- HttpMediaTypeNotAcceptableException Could not find acceptable representation HOT 3
- Support for org.springframework.http.ResponseEntity
- How to return Status HOT 3
- No serializer found for class rx.Observable when using this with apache cxf HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxjava-spring-boot-starter.