ssm icon indicating copy to clipboard operation
ssm copied to clipboard

tomcat

Open Sunxb opened this issue 5 years ago • 11 comments

你好,我想用tomcat把这个项目跑起来,还需要改什么配置么?

Sunxb avatar Aug 28 '19 03:08 Sunxb

要么用编辑器,加载tomcat 要么将项目打成war包交给tomcat

statickert avatar Aug 28 '19 03:08 statickert

@statickert 我用的intellij跑的tomcat, 总是404

Sunxb avatar Aug 28 '19 06:08 Sunxb

哦哦 404是没太大问题的。没有找到网页 输入正确的URL即可。

statickert avatar Aug 28 '19 07:08 statickert

@statickert url应该是正确的了,我总感觉是根本运行不到controller里面

Sunxb avatar Aug 28 '19 07:08 Sunxb

spring mvc的脚本通过了吗?

statickert avatar Aug 28 '19 07:08 statickert

尝试一下输入controller的URL路径,如果还不行,就看一下包冲突

---Original--- From: "statickert"<[email protected]> Date: Wed, Aug 28, 2019 15:22 PM To: "liyifeng1994/ssm"<[email protected]>; Cc: "Subscribed"<[email protected]>; Subject: Re: [liyifeng1994/ssm] tomcat (#56)

spring mvc的脚本通过了吗?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

XBW1 avatar Aug 28 '19 12:08 XBW1

没有运行controller怎么可能跳转

---Original--- From: "Sunxb"<[email protected]> Date: Wed, Aug 28, 2019 15:19 PM To: "liyifeng1994/ssm"<[email protected]>; Cc: "Subscribed"<[email protected]>; Subject: Re: [liyifeng1994/ssm] tomcat (#56)

@statickert url应该是正确的了,我总感觉是根本运行不到controller里面

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

XBW1 avatar Aug 28 '19 12:08 XBW1

通过了的

---Original--- From: "statickert"<[email protected]> Date: Wed, Aug 28, 2019 15:22 PM To: "liyifeng1994/ssm"<[email protected]>; Cc: "Subscribed"<[email protected]>; Subject: Re: [liyifeng1994/ssm] tomcat (#56)

spring mvc的脚本通过了吗?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

XBW1 avatar Aug 28 '19 12:08 XBW1

请问有遇到过这个原因吗 Connections could not be acquired from the underlying database 用户名 密码 全部都是正确的,找不到解决办法了,想请教一下,这个是什么情况呢

gsq47 avatar Sep 26 '19 11:09 gsq47

数据库连接不正确

---Original--- From: "gsq47"<[email protected]> Date: Thu, Sep 26, 2019 19:00 PM To: "liyifeng1994/ssm"<[email protected]>; Cc: "Comment"<[email protected]>;"XBW1"<[email protected]>; Subject: Re: [liyifeng1994/ssm] tomcat (#56)

请问有遇到过这个原因吗 Connections could not be acquired from the underlying database 用户名 密码 全部都是正确的,找不到解决办法了,想请教一下,这个是什么情况呢

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

XBW1 avatar Sep 26 '19 11:09 XBW1

由于我的mysql是8.0.16的,所以需要使用mysql-connector-java 8.0.11版本,spring配置文件里需要修改 把com.mysql.jdbc.Driver 改为 com.mysql.cj.jdbc.Driver

gsq47 avatar Oct 10 '19 01:10 gsq47