報錯org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/
2017-09-18
Destroy method on bean with name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception
2017-09-18
最新回答 / 木塵子
第一個規定就是這樣,我們按照規定來就可以了。第二個Required String parameter 'name' is not present。應該是你傳入參數是沒傳入“name”屬性,而后臺代碼你直接寫的@RequestParam("name"),這樣寫是有問題的,因為@RequestParam注解默認required = true,而你沒傳當然報錯了??梢约由蟫equired = false,這時代碼邏輯可以需要調整一下,因為不傳name時后臺獲取的name可能null。
2017-09-17
最贊回答 / wow08
將application.yml中的數據庫連配置改成這樣:url: jdbc:mysql://127.0.0.1:3306/girls?characterEncoding=utf8亂碼的解決關鍵就是這個characterEncoding=utf8
2017-09-16
最贊回答 / 慕碼人3035288
<dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.3.175</version> </dependency>
2017-09-16