server:
port: 9999
context-path: /api
this is my springBoot configuration. How to enter localhost:9999 to jump directly to index.html. Now you have to type localhost:9999/api to jump to the home page
server:
port: 9999
context-path: /api
this is my springBoot configuration. How to enter localhost:9999 to jump directly to index.html. Now you have to type localhost:9999/api to jump to the home page
write a controller, class and method using @ RequestMapping ("/").
you can access this method by using localhost:9999, and jump directly to index.html
Previous: How does the iview Upload component achieve cross-domain file upload?
Next: LAMP configuration ssl access wordpress is the source code of php
@Bean public HttpMessageConverters fastJsonHttpMessageConverters() { 1convert FastJsonHttpMessageConverter fastConverter = new FastJsonHttpMessageConverter(); 2fastjsonjson; FastJsonConfig fastJsonConfig = new Fast...
and input parameters use @ RequestBody annotations ...
original https: www.cnblogs.com rensh. when data is returned I have tried my code for N times and all returned { "code ": 1, "msg ": "this id must be passed ", "data ": data } cannot be returned at all unless it is returned directly, but t...
the project always reports an error when calling the interface: org.thymeleaf.exceptions.TemplateInputException: Error resolving template " thymeleaf user ", template might not exist or might not be accessible by any of the configured Template Resolve...
use this.clearCachedAuthenticationInfo () to pass in tokens, and also execute this.clearCachedAuthorizationInfo () operation to empty the authorization information. The above two operations are the same principals . In Debug, it is found that the r...
< H2 > problem description < H2 > in the process of using feign, turn on the circuit breaker by configuring feign.hystrix.enabled=true . However, the fallback will be executed directly after startup and will not determine whether the call was success...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "- mybatis.org DTD MyBatis Generator Configuration 1.0 EN" "http: mybatis.org dtd mybatis-generator-config_1_0....
I wrote the following configuration in application.yml: projectConfig: code: 0048 read the configuration in java @Data public class ProjectConfig{ private String code; } what happens when printing a code of 48.00 instead of 0048 as originall...
SpringBoot after integrating WebService , only WebService registered endpoints can access it, and other routes visit the blank page. The specific code is as follows: configuration of Webservice @Configuration public class WebServiceConfig { ...
< H2 > error < H2 > intellij web UserController UserMapper User jdbc pom.xml sql dao.UserMapper controller.UserController Demo10Application ...
recently I want to try a relatively simple development method. only writes sql statements in the xml file, and both incoming and outgoing parameters are map. Do something else in controller and service. then write a test code. this is the param, of...
...
mybatis the specific configuration in application.yml is as follows: mybatis: config-location: classpath:mybatis mybatis-config.xml mapper-locations: classpath*:mybatis mapper mysql ** **.xml type-aliases-package: com.dragonflyxd.lr.web.model...
1, springBoot version 1.5.9 2, jdk version 1.8 problem description: http: localhost:35620 api admin login 2018-06-02 00:04:31.739 |-INFO [XNIO-2 task-1] org.thymeleaf.TemplateEngine [825] -| [THYMELEAF] INITIALIZING TEMPLATE ENGINE 2018-06-02 00:04...
. _ _ (_) _ (() _ _ | | _ | | _ _ `| _) | _) | | (_ |) | _ | . _ _ | _ | | _, | | = | _ | = | _ = _ :: Spring Boot:: (v1.5.6.RELEASE) | 2018-05-28 17 INFO 11.756 INFO 6788-[main] com.wlc.DemoApplication...
yml is described as follows application: address: 0xb7716e1f5690a841d698dd64ae13727bf719b2cd : 4 0x0f020200ad0729f19be98ddb26685d80359428b7 : 5 by injecting into the springboot project import org.springframework.core.env.En...
Connected to the target VM, address: 127.0.0.1:63782 , transport: socket log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment). log4j:WARN Please initialize the log4j system properly....
my spring boot only provides http access. The https, I configured in nginx found that login redirects automatically and redirect automatically jumps to http I don t want to configure ssl on spring boot how to solve it? there are all spring boot con...
1. This is my main class 2.controller 3. I want to get the return value of the interface and print the log. How can I achieve this? ...
I have multiple spring boot projects, and I want to extract the common code and configuration of these projects into a common configuration. For example, @EnableAspectJAutoProxy public class DefaultConfig {} I want all projects to open AOP, but I do...