排序
webservice服务报错:javax.xml.bind.MarshalException
webservice服务报错,信息如下: javax.xml.bind.MarshalException - with linked exception: [com.sun.istack.SAXException2: unable to marshal type 'wsstub.sscm.importShipAdviceInfoR...
如何安全的将Java String字符串转换为BigDecimal
实现从Java String字符串到BigDecimal的安装转换: import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.ParsePosition; import j...
Maven如何配置自己的私有远程仓库
使用maven是为了更好的管理项目中涉及的jar包等,为了节省和更好的管理jar包,公司内部有时会搭建一个Maven的私库,那么如何对自己本地的maven进行配置,从而可以直接从私库下载Jar包呢? 我的...
Tomcat启动报错:To prevent a memory leak, the JDBC Driver has been forcibly unregistered
Tomcat部署完项目启动时,报错,报错内容如下: 10:30:01.346 [localhost-startStop-1] DEBUG org.mybatis.spring.SqlSessionUtils.debug(Slf4jImpl.java:47) - Closing non transactional SqlS...
优雅的激活IntelliJ IDEA
所有版本激活方法汇总参考:IntelliJ IDEA 最新版激活/注册码系列教程(无需修改hosts文件); 这篇文章是为穷屌丝(包括我自己)准备的,本来打算购买IntelliJ IDEA这款开发工具的,可以算下来一年...
Spring Boot文件上传/下载示例
前台 参考:漂亮的文件上传控件input file css样式整理; 后台 代码如下: package com.aitlp.dataArchives.controller; import org.springframework.web.bind.annotation.*; import org.spring...
Spring Boot中@MapperScan注解多个包
单个: @SpringBootApplication @MapperScan('org.4spaces.**.dao') public class Application { public static void main(String[] args) { // ... } } 多个: @SpringBootApplication @Mapper...
Springboot读取yml文件工具类
除了注解等方式(参考: Spring Boot获取yml文件配置注入Map/List/String等类型 ),还有一种直接读取的实现: public static Object readProperties(String key) { Object propertyValue = nul...
Solving Dependency Conflicts in Maven
The more libraries you pull in, the more likely you are to hit conflicting dependencies. Here are a couple of ways to resolve them when using Maven. Maven dependency conflicts can ...
使用Jersey构建RESTful服务之将Java对象转换为Json并输出
请先看汇总篇「Web Service入门及实践」,学习前面的基础知识和例子再来看这篇! 在使用Web Service时,Json是经常用到的数据交换格式。这个例子就是演示如何将Java对象转换为Json格式,并返回...




