修改了数据库连接
This commit is contained in:
		@@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 启动程序
 | 
			
		||||
 * 
 | 
			
		||||
 *
 | 
			
		||||
 * @author ruoyi
 | 
			
		||||
 */
 | 
			
		||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
 | 
			
		||||
@@ -16,15 +16,6 @@ public class RuoYiApplication
 | 
			
		||||
    {
 | 
			
		||||
        // System.setProperty("spring.devtools.restart.enabled", "false");
 | 
			
		||||
        SpringApplication.run(RuoYiApplication.class, args);
 | 
			
		||||
        System.out.println("(♥◠‿◠)ノ゙  若依启动成功   ლ(´ڡ`ლ)゙  \n" +
 | 
			
		||||
                " .-------.       ____     __        \n" +
 | 
			
		||||
                " |  _ _   \\      \\   \\   /  /    \n" +
 | 
			
		||||
                " | ( ' )  |       \\  _. /  '       \n" +
 | 
			
		||||
                " |(_ o _) /        _( )_ .'         \n" +
 | 
			
		||||
                " | (_,_).' __  ___(_ o _)'          \n" +
 | 
			
		||||
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
 | 
			
		||||
                " |  | \\ `'   /|   `-'  /           \n" +
 | 
			
		||||
                " |  |  \\    /  \\      /           \n" +
 | 
			
		||||
                " ''-'   `'-'    `-..-'              ");
 | 
			
		||||
        System.out.println("(♥◠‿◠)ノ゙  项目启动成功   ლ(´ڡ`ლ)゙  ");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,16 +6,16 @@ spring:
 | 
			
		||||
        druid:
 | 
			
		||||
            # 主库数据源
 | 
			
		||||
            master:
 | 
			
		||||
                url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
 | 
			
		||||
                url: jdbc:mysql://47.92.102.242:3306/shjspx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
 | 
			
		||||
                username: root
 | 
			
		||||
                password: password
 | 
			
		||||
                password: Jsly2018!
 | 
			
		||||
            # 从库数据源
 | 
			
		||||
            slave:
 | 
			
		||||
                # 从数据源开关/默认关闭
 | 
			
		||||
                enabled: false
 | 
			
		||||
                url: 
 | 
			
		||||
                username: 
 | 
			
		||||
                password: 
 | 
			
		||||
                url:
 | 
			
		||||
                username:
 | 
			
		||||
                password:
 | 
			
		||||
            # 初始连接数
 | 
			
		||||
            initialSize: 5
 | 
			
		||||
            # 最小连接池数量
 | 
			
		||||
@@ -35,7 +35,7 @@ spring:
 | 
			
		||||
            testWhileIdle: true
 | 
			
		||||
            testOnBorrow: false
 | 
			
		||||
            testOnReturn: false
 | 
			
		||||
            webStatFilter: 
 | 
			
		||||
            webStatFilter:
 | 
			
		||||
                enabled: true
 | 
			
		||||
            statViewServlet:
 | 
			
		||||
                enabled: true
 | 
			
		||||
@@ -43,8 +43,8 @@ spring:
 | 
			
		||||
                allow:
 | 
			
		||||
                url-pattern: /druid/*
 | 
			
		||||
                # 控制台管理用户名和密码
 | 
			
		||||
                login-username: 
 | 
			
		||||
                login-password: 
 | 
			
		||||
                login-username:
 | 
			
		||||
                login-password:
 | 
			
		||||
            filter:
 | 
			
		||||
                stat:
 | 
			
		||||
                    enabled: true
 | 
			
		||||
@@ -54,4 +54,4 @@ spring:
 | 
			
		||||
                    merge-sql: true
 | 
			
		||||
                wall:
 | 
			
		||||
                    config:
 | 
			
		||||
                        multi-statement-allow: true
 | 
			
		||||
                        multi-statement-allow: true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user