Giter Club home page Giter Club logo

Comments (4)

jmnarloch avatar jmnarloch commented on August 17, 2024

Any chance to publish minimal setup/project to reproduce the issue?

from rxjava-spring-boot-starter.

MercurieVV avatar MercurieVV commented on August 17, 2024

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.

ikamman avatar ikamman commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.