终于弄出来了,pom.xml文件中加一些东西。
<plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.20.v20190813</version> <configuration> <scanIntervalSeconds>5</scanIntervalSeconds> <webApp> <contextPath>/</contextPath> </webApp> </configuration> </plugin> </plugins>
`pom.xml的build里面加上上面的的内容,然后用mvn`` jetty:run 启动,不要用Tomcat。然后自己在浏览器输入网址。
有没有碰到Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database! 这个问题 用的是本地搭的mysql数据库。
.sql文件导入数据库中了吗? mysql.properties文件中的用户名,密码更改了吗?如果这些都做了还不行的话,我也没有办法,我也是个菜鸟。
JDBCConnectionError 是mysql connector java的版本与安装的mysql workbench 不一致 https://github.com/Zoutao6/examination_system-/issues/2
所以问题解决了是吗?祝你好运。
是的,搞了3、4个小时才好。
我当初搞了一个下午没弄好,气得我两天没碰他,后来问的我一个叔叔,他帮我解决了,O(∩_∩)O。
叔叔几岁啊,还能写代码啊?
辈分大而已,年龄也就30岁左右。
扫码关注新框架:spring boot+react
------------------ 原始邮件 ------------------ 发件人: "chenjielauren"<[email protected]>; 发送时间: 2019年11月7日(星期四) 下午4:27 收件人: "JaceyRx/Examination_System"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [JaceyRx/Examination_System] 终于弄出来了,pom.xml文件中加一些东西。 (#33)
叔叔几岁啊,还能写代码啊?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
<plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.20.v20190813</version> <configuration> <scanIntervalSeconds>5</scanIntervalSeconds> <webApp> <contextPath>/</contextPath> </webApp> </configuration> </plugin> </plugins>`pom.xml的构建里面加上上面的内容,然后用mvn`` jetty:run启动,不要用Tomcat。然后自己在浏览器输入网址。
你好,请问可以私聊吗?想请教一下这个问题!拜托了!
啥问题? 不好意思 刚看到
啥问题? 不好意思 刚看到
请问有没有遇到跳转页面出现404或401的状况?
我没用Tomcat配置,用的是jetty配置,没出现404或401。
我没用Tomcat配置,用的是jetty配置,没出现404或401。
登陆之后功能都可以使用吗?
有些功能我不需要,没有全测,只用了管理员功能那一块。