Spring Boot中常用的三个注解 注解配置截图: @SpringBootConfiguration 这个注解就是根据 @Configuration 注解演化而来的,二者功能也一致,标注当前类是配置类。 @Configuration org.springframework.context.ann ...
                            
                            
                                分类:
编程语言   时间:
2020-05-31 21:48:13   
                                阅读次数:
109
                             
                    
                        
                            
                            
                                    前段时间服务有这么个需求,web端的接口需要有web安全相关的整改,但是对内的接口并不需要。所以服务需要多个端口启动,在此记录下 Springboot中如何启用多个监听端口 @Configuration public class EmbeddedTomcatConfiguration { @Valu ...
                            
                            
                                分类:
编程语言   时间:
2020-05-31 16:15:57   
                                阅读次数:
204
                             
                    
                        
                            
                            
                                    再开始里找到sql server configuration manager,发现TCP/IP是禁用的。 点击启用并重启 也可以在TCP、IP看到默认端口号 重启即可 ...
                            
                            
                                分类:
数据库   时间:
2020-05-31 12:41:03   
                                阅读次数:
232
                             
                    
                        
                            
                            
                                    1 pom <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>com.xx.xxAppli ...
                            
                            
                                分类:
编程语言   时间:
2020-05-30 15:37:58   
                                阅读次数:
58
                             
                    
                        
                            
                            
                                    运行时报错:You must configure either the server or JDBC driver (via the serverTimezone configuration property),说明是mysql没有把时区改成+8:00,改一下就好,具体方法百度。 运行时报错: In ...
                            
                            
                                分类:
编程语言   时间:
2020-05-30 13:09:49   
                                阅读次数:
88
                             
                    
                        
                            
                            
                                    <R3>reset saved-configuration 输入命令后会出现: This will delete the configuration in the flash memory. The device configuratio ns will be erased to reconfigu ...
                            
                            
                                分类:
其他好文   时间:
2020-05-29 13:34:05   
                                阅读次数:
208
                             
                    
                        
                            
                            
                                    Centos 8切换至命令行模式 cat /etc/inittab # inittab is no longer used. # # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # Ctrl-Alt-Delete i ...
                            
                            
                                分类:
其他好文   时间:
2020-05-29 11:54:36   
                                阅读次数:
408
                             
                    
                        
                            
                            
                                urls.py """cookiesession URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.co ...
                            
                            
                                分类:
其他好文   时间:
2020-05-28 18:00:08   
                                阅读次数:
53
                             
                    
                        
                            
                            
                                    常用功能的简单封装 public class Dapper { public string ConnectionString { get; set; } public Dapper() { var Configuration = new ConfigurationBuilder() .Add(new ...
                            
                            
                                分类:
移动开发   时间:
2020-05-26 01:27:07   
                                阅读次数:
222
                             
                    
                        
                            
                            
                                    1,原因如下图 原因是开发模式为Debug配置环境,发布服务器后在release模式下没找到对应的xml配置文件 解决办法,在项目配置document的xml除了debug模式之外,在release也需要配置,如下图configuration选择配置环境 ...
                            
                            
                                分类:
其他好文   时间:
2020-05-26 01:07:20   
                                阅读次数:
250