Easter79 Easter79
3年前
springboot日志
原则:代码中尽量使用slf4j门面尽量采用注解方式@Slf4j(https://my.oschina.net/slf4j)节省代码量!(https://oscimg.oschina.net/oscnet/6dcd4f649cd1391102144bae9c99709ca66.jpg)步骤:1.排除springboot默认日
Jacquelyn38 Jacquelyn38
4年前
零基础学习TypeScript(源码开源)
今天,这篇文章篇幅很短,主要开放我最近学习整理TypeScript源码。|文件夹|作用|||||demo1|TypeScript的定义||demo2|基础环境搭建||demo3|基础类型和对象类型||demo4|类型注解和类型推断||demo5|函数相关类型||demo6|数组与元组||dem
kenx kenx
2年前
SpringBoot定义优雅全局统一Restful API 响应框架二
这里解决之前留下来的问题,当程序没有正常返回时候就是程序由于运行时异常导致的结果,有些异常我们可,能无法提前预知,不能正常走到我们return的R对象返回。这个时候该如何处理在SpringBoot中,可以使用@ControllerAdvice注解来启用全局
Stella981 Stella981
3年前
Quartz结合SPRING多任务定时调用
public class QuartzJob {      public void work()      {              System.out.println(Spring Quartz的任务调度1被调用!");              //定时调用的业务逻辑      }
Stella981 Stella981
3年前
AndroidAnnotations 使用
下面部分是基于2.6上使用的注解和解释AfterInject定义的方法在类的构造方法执行后执行AfterTextChange定义的方法在TextView及其子类的Text属性改变后执行AfterViews定义的方法在setContentView后执行Background定义的方法在后台线程执行BeforeTextCha
Stella981 Stella981
3年前
Spring Boot Servlet支持介绍
Web开发使用 Controller 基本上可以完成大部分需求,但是我们还可能会用到Servlet、Filter、Listener、Interceptor 等等。当使用SpringBoot时,嵌入式Servlet容器通过扫描注解的方式注册Servlet、Filter和Servlet规范的所有监听器(如HttpSessionListener监听器)。 
Stella981 Stella981
3年前
Spring 4.3 的新功能和增强
核心容器改进核心容器额外提供了更丰富的元数据来改进编程。默认Java8的方法检测为bean属性的getter/setter方法。如果目标bean只定义了一个构造函数,则它无需要指定@Autowired注解@Configuration类支持构造函数注入。任何SpEL
Easter79 Easter79
3年前
Spring的事务传播行为
先举一个Spring的嵌套例子ServiceA {    void methodA() {        ServiceB.methodB();    }}ServiceB {    void methodB();}事务传播属性可以在@Trans
Stella981 Stella981
3年前
More than one fragment with the name [spring_web] was found. This is not legal ...
 今天在搭建springweb应用环境的时候启动tomcat报错Morethanonefragmentwiththename\spring\_web\wasfound.Thisisnotlegal...···Causedby:java.lang.IllegalArgumentException:Mo
Wesley13 Wesley13
4年前
@transactional注解,报错后数据库操作回滚失败
1. https://jingyan.baidu.com/article/3a2f7c2e27d51b26afd611ff.html(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fjingyan.baidu.com%2Farticle%2F3a2f7c2e27d51b26afd611f