GithubHelp home page GithubHelp logo

javaee-course-code's People

Contributors

qxr777 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

longlzl

javaee-course-code's Issues

spring-bucks-2中缺失一些控制类以及出现一些其他问题

image
git里就只有一个控制类,缺少了request文件夹内容,也没有订单的控制类,从其他服务里复制过来后可编译应用。
SpringBucksApplication.java中的bean
@ Bean
public LettuceClientConfigurationBuilderCustomizer customizer() {
return builder -> builder.readFrom(ReadFrom.MASTER_PREFERRED);
}
会导致一个报错:java.lang.reflect.InaccessibleObjectException,查阅资料后知道这是由于JAVA17对反射机制进行了限制,但是尝试普遍的解决方法未能解决
将这段代码注释掉之后应用正常启动,GET方法正常使用,POST订单也正常,但是添加咖啡会返回400Bad Request,Spring控制台里报错
Resolved [org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errorsField error in object 'newCoffeeRequest' on field 'price': rejected value [200];
传入数据无法转换为money类型,不太清楚该怎么解决这个问题

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.