RT, I want to run a test, but I always report this error. What s the problem? org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name com.repository.ProductCategoryRepositoryTest : Unsatisfied dependency expr...
this problem comes from the source code of the book "master springMVC 4 ". In the environment built with SpirngBoot 2, according to my understanding, the @ Autowired annotation generally cannot directly inject the classes under the third-party package ...
in the Html page, using el expressions, there is no problem binding backstage values, but how to use background methods to deal with values? <th:block th:each="post : ${users.list}"> <tr th:cid="${post.uid}"> &l...
how to log out automatically without being active for too long? and there are updates in the background. The web application logs out and the user logs in ...
yml is described as follows application: address: 0xb7716e1f5690a841d698dd64ae13727bf719b2cd : 4 0x0f020200ad0729f19be98ddb26685d80359428b7 : 5 by injecting into the springboot project import org.springframework.core.env.En...
@Pointcut("execution(public * com.hellobj.tool.data.megersch.controller.Result.*(..))") public void webLog(){} @Before("webLog()") public void doBefore(JoinPoint joinPoint) throws Throwable { LOGGER.info(&quo...
spring boot automatically formats attributes of time type as string (String), when controller outputs an object as @ ResponseBody. I don t want to do this. I want to calculate time at the front end, so I want spring to output the properties of time typ...
springboot: "Unregistering JMX-exposed beans on shutdown " tomcat <dependency> <groupId>org.springframework.boot< groupId> <artifactId>spring-boot-starter-tomcat< artifactId> <scope>provided<...
A java service. Resources cannot be accessed because there are too many CLOSE_WAIT for other threads to enter. the figure is as follows: ...
I searched for it all day and found a similar answer to the google, that I was able to get home, but I don t think I can make it clear where this user came from. my English is not good, and I use translation software, which may be the reason why I can...
@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...
validate using spring @ Validated and return the error message to the page, code: 1. Model is defined @Getter @Setter public class User { private String userName; private String password; private String email; } 2, Custom U...
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? ...
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...
for example, there is a server.jar, that I run like this: java -jar server.jar & this runs smoothly, but when you exit the Terminal terminal tool, the operation of server.jar stops. how can I perfectly deploy jar packages that run spring boot gen...
spring intercepts localhost:8080 1 to intercept my chat page, but not to the root directory. Go back to the default index page; console has such important several lines of log output 2018-06-04 15:46:03.601 INFO 15836 --- [ restartedMain] o.s.w.s...
how spring boot accesses a jsp page as a static file just like accessing a js file, just show the code, and you don t need to parse . ...
. _ _ (_) _ (() _ _ | | _ | | _ _ `| _) | _) | | (_ |) | _ | . _ _ | _ | | _, | | = | _ | = | _ = _ :: Spring Boot:: (v1.5.6.RELEASE) | 2018-05-28 17 INFO 11.756 INFO 6788-[main] com.wlc.DemoApplication...
...
The project is developed based on Spring Boot and Mybatis, and the integrated environment is IDEA. when I was a beginner, I didn t understand version management, so I pasted the classes in a runnable project, such as service,controller, and pasted them...
False...
I have a string. I want to use regular matching to find out the time in the log. The string is . INFO: 2018-12-05 13:49:31 ip[10.26.100.4] token[18167782963] [application] Jupiter http: i.jupiter.baidu.com api tags info?cate_id=530&sort=-weight ...
this program designs the communication diagram, as shown in the communication model diagram. the problem is that the online_tcp_ chat module and the manager_new_tcp module cannot communicate with multiple processes through the online_chat_queue module....
Virtual machine environment under Vmware is: `Ubuntu16.04+apache2` after the domain name is resolved, access my 192.168.0.1. 192.168.0.1 is my Unicom terminal, China Unicom FTTH terminal, this terminal cannot set routing and forwarding so I ...
one class @Entity public class Shuo{ @Id @GeneratedValue private int id; private String title; private Date date; String content; @ManyToOne(cascade = CascadeType.REFRESH) @JoinColumn(name = "user_id") private User user; : @OneT...