Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea终于跑成功了 #36

Open
rawchen opened this issue Apr 16, 2020 · 7 comments
Open

idea终于跑成功了 #36

rawchen opened this issue Apr 16, 2020 · 7 comments

Comments

@rawchen
Copy link

rawchen commented Apr 16, 2020

idea先配置好maven,然后用maven导入项目,进去后等它慢慢下载,我用的mysql5.6所以之后只用修改mysql.properties的密码。

然后项目设置添加下资源文件夹,再修改下web.xml中contextConfigLocation,原为/WEB-INF/classes/spring/applicationContext-*.xml,替换/WEB-INF/classes/为classpath:。

然后用tomcat启动这个项目,但是重要的是这个项目启动的Deployment中Artifity:war exploded中Application context为 / 即可成功启动。

@rawchen
Copy link
Author

rawchen commented Apr 16, 2020

前提先用可视化数据库管理创建个examination_system库,查询下sql。

@change-ju
Copy link

能跟你讨教idea运行这个项目吗?

idea先配置好maven,然后用maven导入项目,进去后等它慢慢下载,我用的mysql5.6所以之后只用修改mysql.properties的密码,然后用tomcat启动这个项目,但是重要的是这个项目启动的Deployment中Artifity:war exploded中Application context为 / 即可成功启动。

请问能跟你讨教一下关于idea运行这个项目的问题吗?

@rawchen
Copy link
Author

rawchen commented Apr 29, 2020

q2221999792

@wanggl617
Copy link

Build completed successfully in 3 sec, 64 ms 出现这个是构建好了么,但是还是运行不起来

@wanggl617
Copy link

404 /login资源找不到

@Zhang-aijw817
Copy link

谢谢,参照您的做法,idea版本已调通。

@Small-BlueFish-hjy
Copy link

idea先配置好maven,然后用maven导入项目,进去后等它慢慢下载,我用的mysql5.6所以之后只用修改mysql.properties的密码。

然后项目设置添加下资源文件夹,再修改下web.xml中contextConfigLocation,原为/WEB-INF/classes/spring/applicationContext-*.xml,替换/WEB-INF/classes/为classpath:。

然后用tomcat启动这个项目,但是重要的是这个项目启动的Deployment中Artifity:war exploded中Application context为 / 即可成功启动。

有用!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@rawchen @Zhang-aijw817 @wanggl617 @change-ju @Small-BlueFish-hjy and others