严智鑫
2024-04-10 d56a642531aaf184c1431ae9bb1adee9418cae6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.mes;
 
import com.mes.common.PlcTools.S7object;
import com.mes.mapper.PpMapper;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.Transactional;
 
//springboot 启动入口
@SpringBootApplication
@EnableCaching
@EnableTransactionManagement//事务注解
//@Transactional//在service里面有多表操作,开启事务注解
public class MesApplication {
    public static void main(String[] args) {
        SpringApplication.run(MesApplication.class, args);
        try {
            //new NettyServer(12345).start();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
    
}