记录一个小小的错误,启动的时候报了这么一个错误:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown database 'shouyuan'
完整报错如下: 原因在文尾,请下拉到底~~~
"D:\Program Files\Java\jdk1.8.0_181\bin\java.exe" "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.2\lib\idea_rt.jar=52723:D:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.2\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\Java\jdk1.8.0_181\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\deploy.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\access-bridge-64.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\cldrdata.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\dnsns.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jaccess.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jfxrt.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\localedata.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\nashorn.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunec.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunjce_provider.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunmscapi.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunpkcs11.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\zipfs.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\javaws.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\jce.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\jfr.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\jfxswt.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\management-agent.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\plugin.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\resources.jar;D:\Program Files\Java\jdk1.8.0_181\jre\lib\rt.jar;E:\code\weather\out\production\classes;E:\code\weather\out\production\resources;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-thymeleaf\1.5.10.RELEASE\39df06f0bc15bf022ddf3cc9a0d1cf5dc47f023a\spring-boot-starter-thymeleaf-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-web\1.5.10.RELEASE\8bc445f3ee81e5322e46b28cbb33bca1800b69d9\spring-boot-starter-web-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\mysql\mysql-connector-java\5.0.8\7b9bfb6c4e4885660378a9c13330915c321f6cca\mysql-connector-java-5.0.8.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-data-jpa\1.5.10.RELEASE\ca30f9060231d3161d325580098d326754a2f4e1\spring-boot-starter-data-jpa-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.projectlombok\lombok\1.16.20\ac76d9b956045631d1561a09289cbf472e077c01\lombok-1.16.20.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-devtools\1.5.10.RELEASE\64a5e292f913e4b782954765778e6f6910c0208c\spring-boot-devtools-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.aliyun\aliyun-java-sdk-core\3.5.1\81d7da9b7de366e09b1ba54098aa85f752a4de96\aliyun-java-sdk-core-3.5.1.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.aliyun\aliyun-java-sdk-dysmsapi\1.1.0\83a1bff8ca2add2ecb48704816137ba93d0272b4\aliyun-java-sdk-dysmsapi-1.1.0.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.2.4\a60a5e993c98c864010053cb901b7eab25306568\gson-2.2.4.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.alibaba\fastjson\1.2.46\1510c47faaf3d484221ab20e4ec9d42cfa4984cb\fastjson-1.2.46.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\net.sf.json-lib\json-lib\2.4\136743e0d12df4e785e62b48618cee169b2ae546\json-lib-2.4-jdk15.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-aop\1.5.10.RELEASE\2e58fd451d9e89a539a2c15efc5089d81dd7a686\spring-boot-starter-aop-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-jdbc\1.5.10.RELEASE\f78396b57f70a0ca8422bcbe8959aa49baf49023\spring-boot-starter-jdbc-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter\1.5.10.RELEASE\d935ac98f84c1d97d7ccd702d21abdc236fa7aa0\spring-boot-starter-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-tomcat\1.5.10.RELEASE\11e474e265f1c68fc435dddbac42ab3574b5e4b6\spring-boot-starter-tomcat-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-validator\5.3.6.Final\4c730be8bf55a8e9a61e79a2f2c079abf48b718\hibernate-validator-5.3.6.Final.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.8.10\f7b83cb2bc4b88d53961e749e1ad32f49ef017b7\jackson-databind-2.8.10.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-webmvc\4.3.14.RELEASE\1571eab8a807005d424ca16fedd54b1f439787b2\spring-webmvc-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-web\4.3.14.RELEASE\a0c3bf3ad661db185675bd5af350f35ed11f0903\spring-web-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf-spring4\3.0.9.RELEASE\7c16cb373bb8dd76103633b427a1bba13e54db1e\thymeleaf-spring4-3.0.9.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\nz.net.ultraq.thymeleaf\thymeleaf-layout-dialect\2.2.0\15f250cc343825c3c4c72d8086981e3a2231f640\thymeleaf-layout-dialect-2.2.0.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-entitymanager\5.0.12.Final\302a526f5058290e9cbd719a5caf9f248d344719\hibernate-entitymanager-5.0.12.Final.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-core\5.0.12.Final\e58bf1c660e6706d8e2cbb53bae110f574366102\hibernate-core-5.0.12.Final.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\javax.transaction\javax.transaction-api\1.2\d81aff979d603edd90dcd8db2abc1f4ce6479e3e\javax.transaction-api-1.2.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-jpa\1.11.10.RELEASE\82ec646adc5d33b7b1d8f52e90c0ea030f0888ca\spring-data-jpa-1.11.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aspects\4.3.14.RELEASE\e2d10895e7142dd4c5e979407fe4539146429618\spring-aspects-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-autoconfigure\1.5.10.RELEASE\be96efab0d35181f18c486b0ec8d6a41a7042fce\spring-boot-autoconfigure-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot\1.5.10.RELEASE\594b3efa04829f62754a19f59f81ba204636167a\spring-boot-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.json\json\20140107\d1ffca6e2482b002702c6a576166fd685e3370e3\json-20140107.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\commons-beanutils\commons-beanutils\1.9.3\c845703de334ddc6b4b3cd26835458cb1cba1f3d\commons-beanutils-1.9.3.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\commons-collections\commons-collections\3.2.2\8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5\commons-collections-3.2.2.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\net.sf.ezmorph\ezmorph\1.0.6\1e55d2a0253ea37745d33062852fd2c90027432\ezmorph-1.0.6.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\commons-lang\commons-lang\2.5\b0236b252e86419eef20c31a44579d2aee2f0a69\commons-lang-2.5.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-context\4.3.14.RELEASE\e50a712960926c30e537ef4a633f5d9dd5a8b155\spring-context-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aop\4.3.14.RELEASE\dfe55b0592aead8e3eb0e6a4e98db433b9e09bd7\spring-aop-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-orm\4.3.14.RELEASE\721bc451d02070954ebee039d419b410c4697fcb\spring-orm-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jdbc\4.3.14.RELEASE\1b1b9045d9ec1e067d99bf158210e9e7cf2ebfd2\spring-jdbc-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.data\spring-data-commons\1.13.10.RELEASE\b732245a0902b561b0c33e54cd0f382e9ac444ed\spring-data-commons-1.13.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-tx\4.3.14.RELEASE\1c9449fcb805837db3c706eab4c729f89688a267\spring-tx-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\4.3.14.RELEASE\7bcd17a68dd64e9447d7bff2c42ba7417678596e\spring-beans-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-expression\4.3.14.RELEASE\58477b44debcb49b09e962e3047ee74c2c033e89\spring-expression-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework\spring-core\4.3.14.RELEASE\c70ddb6204457a802d1f6882d65bca3e5b3c41df\spring-core-4.3.14.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.2\4bfc12adfe4842bf07b657f0369c4cb522955686\commons-logging-1.2.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-logging\1.5.10.RELEASE\62c73688208b3173645d6701fc3eb95ca657e6c8\spring-boot-starter-logging-1.5.10.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.17\7a27ea250c5130b2922b86dea63cbb1cc10a660c\snakeyaml-1.17.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-websocket\8.5.27\3cba1c5187a17b0233de5712024d6e144036ba9a\tomcat-embed-websocket-8.5.27.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-core\8.5.27\a10612f0af27c7bfcc4e8d88393adad1fc5b4ece\tomcat-embed-core-8.5.27.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat-embed-el\8.5.27\5a591bcf5c930d2b37bb40c0f95180604a3b1a57\tomcat-embed-el-8.5.27.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\javax.validation\validation-api\1.1.0.Final\8613ae82954779d518631e05daa73a6a954817d5\validation-api-1.1.0.Final.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.hibernate.common\hibernate-commons-annotations\5.0.1.Final\71e1cff3fcb20d3b3af4f3363c3ddb24d33c6879\hibernate-commons-annotations-5.0.1.Final.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.jboss.logging\jboss-logging\3.3.1.Final\c46217ab74b532568c0ed31dc599db3048bd1b67\jboss-logging-3.3.1.Final.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml\classmate\1.3.4\3d5f48f10bbe4eb7bd862f10c0583be2e0053c6\classmate-1.3.4.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.8.0\45b426f7796b741035581a176744d91090e2e6fb\jackson-annotations-2.8.0.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.8.10\eb21a035c66ad307e66ec8fce37f5d50fd62d039\jackson-core-2.8.10.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\nz.net.ultraq.thymeleaf\thymeleaf-expression-processor\1.1.2\f9ade8db0d5d3b1622051bf7b22248c58a0c0ab6\thymeleaf-expression-processor-1.1.2.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.thymeleaf\thymeleaf\3.0.9.RELEASE\64185cca50ac808ad034841c84b4013f955465d2\thymeleaf-3.0.9.RELEASE.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.slf4j\jcl-over-slf4j\1.7.25\f8c32b13ff142a513eeb5b6330b1588dcb2c0461\jcl-over-slf4j-1.7.25.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-classic\1.1.11\ccedfbacef4a6515d2983e3f89ed753d5d4fb665\logback-classic-1.1.11.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.slf4j\jul-to-slf4j\1.7.25\af5364cd6679bfffb114f0dec8a157aaa283b76\jul-to-slf4j-1.7.25.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.slf4j\log4j-over-slf4j\1.7.25\a87bb47468f47ee7aabbd54f93e133d4215769c3\log4j-over-slf4j-1.7.25.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\1.7.25\da76ca59f6a57ee3102f8f9bd9cee742973efa8a\slf4j-api-1.7.25.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.codehaus.groovy\groovy\2.4.13\de7b73bed517fa1323aab391b719b59c3702391a\groovy-2.4.13.jar;C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.aspectj\aspectjweaver\1.8.13\ad94df2a28d658a40dc27bbaff6a1ce5fbf04e9b\aspectjweaver-1.8.13.jar;C:\Users\Administrator\.gradle\caches\modules-2\fi