Springboot exception set

Time:2020-10-5

Anomalies and Solutions

Spring and springboot exceptions

1. An error is reported when the springboot test class is running. The test class cannot be found

Class not found com.cy.cj . common.cache.DefaultTest
Springboot exception set
reasonInspection findings pom.xml The following dependencies are missing from the file
Springboot exception set

<dependency>
    <groupId>org.junit.platform</groupId>
    <artifactId>junit-platform-launcher</artifactId>
</dependency>

2. The sringboot test class runs and the console package nosuchbean is wrong

Springboot exception set

reason:There is no corresponding bean definition

Springboot exception set

3. Errors are reported in the page data of the goods project, only the header is presented, not the table data

Springboot exception set
reason
Springboot exception set

4. Send (null) error in Ajax get request

Failed to load source:the server responded with a status 500()
Springboot exception set

Mybatis exception and its solution

1. Yonghe project store information modification page data display error

exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.tedu.dao.DoorMapper.findById'.  It's likely that neither a Result Type nor a Result Map was specified.] with root cause

reasonInspection findings mapper.xml The file’s select tag is missing resulttype

<select id="findById" resultType="com.tedu.pojo.Door" >
        select * from tb_door where id =#{id}
    < /select>

2. Error report of store information modification form of Yonghe project

Error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists
Springboot exception set
reasonThe value of the action = doorupdate “attribute in the form form is different from the @ requestmapping (” / updatedor “) in the controller
Springboot exception set
###3. When adding an order, when jumping to add a page, the null pointer is wrong
error
Springboot exception set
reasonThe note below is missing
Springboot exception set

Recommended Today

Webassembly and trust

Rust’s support for webassembly is the most perfect. After all, a large part of Mozilla’s original development of trust was to write servo (browser rendering engine). In addition, the two wasm runtimes, wasmer and wasmtime, which we introduced, are also written with rust. For the use of rust to write wasm module and the use […]