ZengTao
2024-05-06 c541e23b13fbd0c9a22ef325f2f9aff56329ff25
修改数据库连接
3个文件已修改
8 ■■■■ 已修改文件
springboot-vue3/effective-pom.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
springboot-vue3/effective-pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!--                                                                        -->
<!-- Generated by Maven Help Plugin on 2024-04-19T08:49:26+08:00            -->
<!-- Generated by Maven Help Plugin on 2024-05-06T07:58:37+08:00            -->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/                -->
<!--                                                                        -->
<!-- ====================================================================== -->
springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -164,7 +164,7 @@
                if (S7control.getinstance().CheckConnected() == true) {
                    // 铝框线交互
                    // if (S7controlLK.getinstance().CheckConnected() == true) {
                    if (S7controlLK.getinstance().CheckConnected() == true) {
                        // E02玻璃id
                        String E02id = S7controlLK.getinstance().readStrings("DB17.40");
                        // log.info("E02id"+E02id);
@@ -206,7 +206,7 @@
                        // log.info("frameno:" + E01id);
                        List<Short> liststates = S7controlLK.getinstance().ReadWord("DB17.38", 1);
                        // log.info("frameflip:" + liststates);
                    // }
                    }
                    // 获取当前扫码方式
                    List<Boolean> Scanningmethods = S7control.getinstance().ReadBits("DB101.11.4", 1);
springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
@@ -345,7 +345,7 @@
    public static Connection getConn() throws SQLException {
        Connection conn = null;
        // conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/canadames?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/");
        conn = DriverManager.getConnection("jdbc:mysql://192.168.102.9:3306/production?serverTimezone=GMT%2B8&characterEncoding=utf-8&usessl=false", "northglass", "n0rthgla55");
        conn = DriverManager.getConnection("jdbc:mysql://192.168.102.9:3306/production?serverTimezone=GMT%2B8&characterEncoding=utf-8&useSSL=false", "northglass", "n0rthgla55");
        return conn;
    }