-
How does Spring Boot load static resources?
how does SpringBoot access the page? I returned the string "login " at controller. It didn t access the login.html page. Do I need to add thymeleaf dependencies? ...
-
When developing a spring project, the front and back ends need to return different data, how to deal with it
I am a java rookie, ask some rookie questions?
use spring-boot to develop projects, spring-data-jpa to access databases,
there are many fields in the database, but only some of them are used by the client, while the data needed by the background is ...
-
How to exclude Aspect from Springboot Unit Test
use springBootTest for unit test. The unit test code is as follows. @ SpringBootTest annotation scans all components, including @ Aspect annotated components. Note 1 is a service and performs database operations
@RunWith(SpringJUnit4ClassRunner.cla...
-
How to exchange data between embedded chip and java background?
encountered a project, there is a SpringBoot background, the terminal is an embedded chip, the data exchange between the two is required to be binary. Contact with this requirement for the first time, unlike the previous interaction with the mobile phone...
-
Spring Boot, is it more appropriate to type each microservice module as Jar or War?
the current practice is that each module in the business layer and the WEB module exposed to the outside are uniformly released as JAR.
Is there a better way to practice ?
...
-
The difference between solving javax.activation.DataSource and javax.sql.DataSource
when writing a simple boot Mini Program today, the automatic injection class was written as javax.activation.DataSource, for a long time. I suddenly find myself a stranger to this area. Can anyone explain the difference? ...
-
Shiro error: "the wildcard string cannot be empty or empty." Make sure the permission string is formatted correctly. "
The Debug in permission list filterChainDefinitionMap is as follows:
filterorg.apache.shiro.web.filter.AccessControlFilter:
subject.isPermittedDebug:
error message:
java.lang.IllegalArgumentException: Wildcard string cannot be null or empty. M...
-
Has anyone considered adding mappedStatement dynamically to mybatis?
mybatis-3.4.4.jar
org.apache.ibatis.builder.xml.XMLMapperBuilder line:132
private void buildStatementFromContext(List<XNode> list, String requiredDatabaseId) {
for (XNode context : list) {
final XMLStatementBuilder statementParse...
-
Strange phenomenon of Java's ability to export or download attachments
has made a function to allow users to download files uploaded in the project system,
downloading is not a problem, but the background will occasionally exception because of files with different suffixes, but it does not affect the download.
in the c...
-
A novice uses intellij to configure springboot's Hello World program and reports an error
:
as configured step by step, tutorial links
...
-
Why is it that after the hot deployment of springboot idea configuration, the requests configured in controller will be lost after each code update;
after I have modified the contents of this controller, I will not be able to map to this controller;
controllerlogin
the request comes back
...
-
Spring boot connection mongodb error Exc sending message CertificateException
the local startup project reported an error, the same code configuration, but there is no problem with others. solve the reason,
{ "exception ": "com.mongodb.MongoSocketWriteException: Exception sending messagerntat com.mongodb.connection.Interna...
-
The service report issued by spring boot is 400 error.
background service
...
-
SpringBoot&Mybatis appears Binding Invalid bound statement in @ Test
the program can run normally, but as long as it uses Spring test, it will make an error Binding Invalid bound statement (not found) can only find XML
Debug finds a point when sessionFactory.setMapperLocation classpath is mapped to target test-classe...
-
SpringBoot is configured with jackson format, but it does not take effect
SpringBoot is configured with jackson format, but it does not take effect
spring:
datasource:
url: jdbc:mysql: localhost:3306 test?useSSL=false
username: root
password: root
driver-class-name: com.mysql.jdbc.Driver
platform: mysq...
-
Failure of Spring Boot AOP comment interception
expectation: define an annotation yourself using SpringBoot + AOP, and intercept the method of placing annotations through AOP. has a problem: it can be intercepted when annotations are placed on methods with controller entry annotations such as GetMap...
-
Spring boot cannot scan mapping
cannot be scanned with classpath:resources mapping *.xml
you can use classpath:mapping *.xml, which is the reason for scanning
wait online.
...
-
I used jsp, to add dependencies in the springboot project. The error is as follows.
...
-
Spring boot customizes 404 error page @ ControllerAdvice mode
other errors will enter here, but 404 errors will not come in? Online documents and articles all say that this is the way to play. It s really strange.
The 404 page keeps reporting this error without entering my custom settings * Whitelabel Error Pa...
-
SpringBoot integrates swagger2. Using a custom status code is not valid.
version statement: springBoot: 1.5.9 swagger: 2.8.0 jdk: 1.8
@ApiResponse(code = 10001 ,message = "")
status code 10001 this is invalid ~ what should I do so that swagger can identify its own defined status code?
...