发布b3log-solo后,访问http://localhost:8080/b3log-solo/提示错误为staticServePath Error。

发布b3log-solo后,访问http://localhost:8080/b3log-solo/提示错误为staticServePath Error。

latke.props内容为:

serverScheme=http serverHost=localhost serverPort=8080 staticServerScheme=http staticServerHost=localhost staticServerPort=8080 contextPath=/b3log staticPath= scanPath=org.b3log.solo runtimeEnv=LOCAL runtimeMode=DEVELOPMENT ###runtimeMode=PRODUCTION cache=LOCAL userService=LOCAL staticResourceVersion=201503241200

注意添加:staticPath=/b3log

b3log与放入tomcat中的war文件同名

 

 

local.properties内容设置成需要的mysql:

runtimeDatabase=MYSQL jdbc.driver=com.mysql.jdbc.Driver jdbc.URL=jdbc:mysql://localhost:3306/b3log?useUnicode=yes&characterEncoding=UTF-8 jdbc.username=root jdbc.password=303585amd #jdbc.pool=BoneCP #jdbc.pool=druid jdbc.pool=c3p0 jdbc.minConnCnt=3 jdbc.maxConnCnt=3 jdbc.transactionIsolation=REPEATABLE_READ jdbc.tablePrefix=b3_solo

 

https://hacpai.com/article/1431405300223

 

posted on 2016-03-15 20:42  imsoft  阅读(385)  评论(0编辑  收藏  举报

导航