啟動spring之后一段時間刷新頁面會出錯
2019-02-06 23:04:49,923 [restartedMain] [org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:675)] - [INFO] No active profile set, falling back to default profiles: default
2019-02-06 23:04:50,649 [restartedMain] [org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:858)] - [ERROR] Application run failed
tk.mybatis.mapper.MapperException: tk.mybatis.mapper.provider.EmptyProvider中缺少selectOne方法!
2019-02-19
注釋掉熱部署依賴
<!--熱部署-->
? ? <dependency>
? ? ? ? <groupId>org.springframework.boot</groupId>
? ? ? ? <artifactId>spring-boot-devtools</artifactId>
? ? ? ? <optional>true</optional>
? ? ? ? <scope>runtime</scope>
? ? </dependency>
或參考下文:
https://github.com/abel533/MyBatis-Spring-Boot/issues/92