Examination_System icon indicating copy to clipboard operation
Examination_System copied to clipboard

终于弄出来了,pom.xml文件中加一些东西。

Open fanzhucheng opened this issue 6 years ago • 15 comments

<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。然后自己在浏览器输入网址。

fanzhucheng avatar Oct 13 '19 05:10 fanzhucheng

有没有碰到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数据库。

chenjielauren avatar Nov 07 '19 06:11 chenjielauren

.sql文件导入数据库中了吗? mysql.properties文件中的用户名,密码更改了吗?如果这些都做了还不行的话,我也没有办法,我也是个菜鸟。

fanzhucheng avatar Nov 07 '19 06:11 fanzhucheng

JDBCConnectionError 是mysql connector java的版本与安装的mysql workbench 不一致 https://github.com/Zoutao6/examination_system-/issues/2

chenjielauren avatar Nov 07 '19 07:11 chenjielauren

所以问题解决了是吗?祝你好运。

fanzhucheng avatar Nov 07 '19 08:11 fanzhucheng

是的,搞了3、4个小时才好。

chenjielauren avatar Nov 07 '19 08:11 chenjielauren

我当初搞了一个下午没弄好,气得我两天没碰他,后来问的我一个叔叔,他帮我解决了,O(∩_∩)O。

fanzhucheng avatar Nov 07 '19 08:11 fanzhucheng

叔叔几岁啊,还能写代码啊?

chenjielauren avatar Nov 07 '19 08:11 chenjielauren

辈分大而已,年龄也就30岁左右。

fanzhucheng avatar Nov 07 '19 08:11 fanzhucheng

扫码关注新框架: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.

MapleEureka avatar Nov 07 '19 08:11 MapleEureka

<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。然后自己在浏览器输入网址。

你好,请问可以私聊吗?想请教一下这个问题!拜托了!

Frank1o avatar Nov 12 '19 09:11 Frank1o

啥问题? 不好意思 刚看到

chenjielauren avatar Nov 19 '19 00:11 chenjielauren

啥问题? 不好意思 刚看到

请问有没有遇到跳转页面出现404或401的状况?

Frank1o avatar Nov 19 '19 02:11 Frank1o

我没用Tomcat配置,用的是jetty配置,没出现404或401。

chenjielauren avatar Nov 19 '19 02:11 chenjielauren

我没用Tomcat配置,用的是jetty配置,没出现404或401。

登陆之后功能都可以使用吗?

Frank1o avatar Nov 19 '19 02:11 Frank1o

有些功能我不需要,没有全测,只用了管理员功能那一块。

chenjielauren avatar Nov 19 '19 03:11 chenjielauren