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?
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?
by default, we only need to place static resources in the following directories to be accessed directly in the browser through url.
for example, if you delegate login.html, to static, you can access http://localhost:8080/login.html
directly
you can download the code sample yourself debug: https://gitee.com/skyarthur19.
Previous: Nginx root directory 403
Next: An anaconda_api.is_vscode_available:871 error occurred using the anaconda-navigator command
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 ...
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...
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...
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 ? ...
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? ...
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...
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...
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...
: as configured step by step, tutorial links ...
after I have modified the contents of this controller, I will not be able to map to this controller; controllerlogin the request comes back ...
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...
background service ...
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 spring: datasource: url: jdbc:mysql: localhost:3306 test?useSSL=false username: root password: root driver-class-name: com.mysql.jdbc.Driver platform: mysq...
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...
cannot be scanned with classpath:resources mapping *.xml you can use classpath:mapping *.xml, which is the reason for scanning wait online. ...
...
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...
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? ...
@Select("SELECT * FROM url WHERE code = -sharp{code}") Url findByCode(@Param("code") String code); Url url1 = urlMapper.findByCode("fuck"); returns null all select queries are, it s strange that I ve tried t...