@Autowired
private Environment environment;
@Entity
@Table(name = "B")
public class B implements Serializable {
...
@Column(name = "data", nullable = false)
@Lob
@javax.persistence.Basic(fetch=FetchType.LAZY)
private byte[] data;
...
}
Host bitbucket.org github.com
IdentityFile ~/.ssh/git_rsa
User git
import org.springframework.core.Ordered;
@Configuration
public class CustomSpringConfiguration extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addRedirectViewController("/*", "/static/index.html");
registry.setOrder(Ordered.LOWEST_PRECEDENCE);
}
}