| | |
| | | MessageProcessor.generateReturnMessage(str,Machine); |
| | | } |
| | | public void connect() { |
| | | /*List<Machines> shelf67=machineDao.findAll(); |
| | | List<Machines> shelf67=machineDao.findAll(); |
| | | for (Machines machines : shelf67) { |
| | | machineService.connect(machines); |
| | | }*/ |
| | | } |
| | | // Machines Machine=machineDao.findOne(75L); |
| | | // machineService.connect(Machine); |
| | | // Machines Machine=machineDao.findOne(38L); |
| | |
| | | public static Connection getConnection() { |
| | | //localhost:3307 192.168.200.201 192.168.2.6 10.12.0.100:3306 |
| | | try { |
| | | return DriverManager.getConnection("jdbc:mariadb://localhost:3307/gmms","root",""); |
| | | return DriverManager.getConnection("jdbc:mariadb://10.12.0.100:3306/gmms","root",""); |
| | | } catch (SQLException e) { |
| | | e.printStackTrace(); |
| | | } |