当前位置:网站首页>Graduation thesis project local deployment practice
Graduation thesis project local deployment practice
2022-07-05 07:20:00 【jiankang66】
One 、 background
I wrote a column about how to write my graduation thesis , There are so many articles . My friend asked me about the source code , Ready for everyone , And practice it , Run the project locally , It is convenient for everyone to understand the content of the paper . Can pay attention to java Basic notes official account , Search for graduation thesis .
Undergraduate computer major graduation design thesis writing guide
The development and construction of small education website - The opening ( One )
The development and construction of small education website - Preface and demand analysis ( Two )
The development and construction of small education website - overall design ( 3、 ... and )
The development and construction of small education website - The system design ( Four )
The development and construction of small education website - Epilogue ( 5、 ... and )
Deploy the graduation project to Alibaba cloud server
Two 、 Deploy the actual battle
1、 Baidu network disk download source code and database sql file .
(1) The file is very large , Wait patiently .
(2) After downloading , Unzip the code file .
2、 Import sql Database files .
(1) open navcat, Right click to create a new database .

(2) Right click the new database , function SQL file , Found downloaded sql, Click Start .

(3) Refresh the newly created database , You can see sql The tables and data in the file have been imported .

3、idea Open the extracted project for configuration
Be careful : The unzipped directory of the project cannot have Chinese , Otherwise, it will start error reporting
(1) choice File->open File or Project->marked as project.

(2) modify properties Database connection information in the configuration file , Change to your own .
spring.datasource.url=jdbc:mysql://localhost:3306/jiankangeducation?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver(3) Appears in the configuration file mysql.jdbc. It's red , It can be modified pom file , take mysql Dependent scope Remove the label , Finally, it becomes the following .
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>4、 find SessionConfig Class comment out comments
(1) Do not comment out the local redis I'll make a mistake .
//@Configuration
//@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 60*20)
public class SessionConfig {
}5、 Test whether the database connection is modified correctly .
(1) Find the project startup class , Right click ->Go To->Test, Generate test files .

(2) Edit the test file to test .
package com.jiankang;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.sql.DataSource;
import java.sql.SQLException;
@RunWith(SpringRunner.class)
@SpringBootTest
public class JiankangApplicationTests {
@Autowired
DataSource dataSource;
@Test
public void contextLoads() throws SQLException {
System.out.println(" The database connection obtained is :"+dataSource.getConnection());
}
}6、 Start project
(1) visit localhost:8088

(2) enter one user name 111, password 111, Can log in successfully .

3、 ... and 、 summary
The above is the complete steps for me to deploy my graduation project , Focus on java Basic notes send graduation thesis to get the source code , You can start the operation locally , If you think it's good , Welcome to wechat search java Basic notes , Relevant knowledge will be continuously updated later , Make progress together .
边栏推荐
- Mathematical analysis_ Notes_ Chapter 8: multiple integral
- 【obs】x264编码:“buffer_size“
- 网易To B,柔外刚中
- SD_ CMD_ SEND_ SHIFT_ REGISTER
- CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
- 【软件测试】06 -- 软件测试的基本流程
- [software testing] 02 -- software defect management
- Word import literature -mendeley
- [OBS] x264 Code: "buffer_size“
- 2022.06.27_ One question per day
猜你喜欢

网易To B,柔外刚中

HDU1231 最大连续子序列(分治or动规or双指针)
![[software testing] 04 -- software testing and software development](/img/bd/49bba7ee455ce59e726a2fdeafc7c3.jpg)
[software testing] 04 -- software testing and software development

Literacy Ethernet MII interface types Daquan MII, RMII, smii, gmii, rgmii, sgmii, XGMII, XAUI, rxaui

docker安装mysql并使用navicat连接

Today, share the wonderful and beautiful theme of idea + website address

HDU1232 畅通工程(并查集)

Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
![[idea] efficient plug-in save actions to improve your work efficiency](/img/6e/49037333964865d9900ddf5698f7e6.jpg)
[idea] efficient plug-in save actions to improve your work efficiency
![When jupyter notebook is encountered, erroe appears in the name and is not output after running, but an empty line of code is added downward, and [] is empty](/img/fe/fb6df31c78551d8908ba7964c16180.jpg)
When jupyter notebook is encountered, erroe appears in the name and is not output after running, but an empty line of code is added downward, and [] is empty
随机推荐
D2L installation
网易To B,柔外刚中
(top) pretty girl binary color code portal
Unity ugui how to match and transform coordinates between different UI panels or uis
Matlab在线性代数中的应用(四):相似矩阵及二次型
selenium 元素定位
Netease to B, soft outside, hard in
Tshydro tool
Initialization of global and static variables
C learning notes
Concurrent programming - deadlock troubleshooting and handling
【Node】nvm 版本管理工具
And play the little chestnut of dynamic agent
IPage能正常显示数据,但是total一直等于0
并发编程 — 如何中断/停止一个运行中的线程?
[idea] efficient plug-in save actions to improve your work efficiency
The problem of configuring opencv in qt5.13.2 is solved in detail
Ros2 - first acquaintance with ros2 (I)
1290_ Implementation analysis of prvtaskistasksuspended() interface in FreeRTOS
Qu'est - ce que l'hydroxyde de sodium?