码迷,mamicode.com
首页 >  
搜索关键字:.classpath    ( 3408个结果
Java环境变量
在系统变量中新建如下: JAVA_HOME:C:\Program Files\Java\jdk1.8.0_231(jdk目录) CLASSPATH:. PATH(Path):%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin 然后在命令行中输入"java"、"javac"、"ja ...
分类:编程语言   时间:2020-07-12 11:53:03    阅读次数:57
基于Spring的单元测试
spring的单元测试类定义如下:@WebAppConfiguration@ContextConfiguration("classpath:applicationContext.xml")public class BaseTest extends AbstractTransactionalJUnit ...
分类:编程语言   时间:2020-07-10 15:30:39    阅读次数:68
SpringBoot 2.x 自定义拦截器并解决静态资源访问被拦截问题
自定义拦截器 /** * UserSecurityInterceptor * Created with IntelliJ IDEA. * Author: yangyongkang * Date: 2018/8/22 * Time: 14:20 */ @Component public class U ...
分类:编程语言   时间:2020-07-09 00:53:49    阅读次数:153
SpringBoot的一些注解和
@Component 作用在类上,将对象交给容器管理 @PropertySource("classpath:book.properties") 在类上引入其他配置 @ConfigurationProperties(prefix = "book") 类安全的属性注入,指定配置前缀 @Value 将属性 ...
分类:编程语言   时间:2020-07-08 15:06:32    阅读次数:65
Spring Boot的特性: 自定义日志配置
[26.5. 自定义日志配置通过将相应的库添加到classpath可以激活各种日志系统,然后在classpath根目录下提供合适的配置文件可以进一步定制日志系统,配置文件也可以通过SpringEnvironment的logging.config属性指定。使用org.springframework.b... ...
分类:编程语言   时间:2020-07-07 22:12:11    阅读次数:77
Spring项目用JUnit调试时出现错误 Failed to load ApplicationContext 的解决方法
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:/spring-config.xml") 参考:https://blog.csdn.net/weixin_40672761/art ...
分类:移动开发   时间:2020-07-07 20:30:39    阅读次数:144
SpringBoot整合LogBack一看就懂
SpringBoot环境为2.2.2.RELEASE。不用导入任何的依赖。yml文件不需要任何的配置。只用在 Classpath下创建一个logback.xml即可。如果需要自定义文件名或者文件位置,可以在yml中 配置 logging.config=classpath:logback.xml 在代 ...
分类:编程语言   时间:2020-07-07 17:16:33    阅读次数:347
mybatis plus的逆向工程及基本使用
yml的配置 mybatis-plus: mapper-locations: classpath*:com/gwq/movie/**/xml/*Mapper.xml global-config: id-type: 0 db-column-underline: false refresh-mapper ...
分类:其他好文   时间:2020-07-07 09:53:07    阅读次数:105
Dubbo不用注册中心实现远程调用的简单用法demo
服务端: 先在服务端写接口以及接口实现类: package com.gupao.dubbo; public interface GPDubboService { public String sayHello(String msg); } package com.gupao.dubbo; public ...
分类:其他好文   时间:2020-07-05 17:48:28    阅读次数:103
SpringBoot注解配置文件映射属性和实体类
配置文件加载 方式一 Controller上面配置@PropertySource({"classpath:pay.properties"}) 添加属性@Value("wxpay.appid") private String payAppid; pay.properties # 微信支付的appid ...
分类:编程语言   时间:2020-07-04 22:24:32    阅读次数:94
3408条   上一页 1 ... 8 9 10 11 12 ... 341 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!