Skip to content

Instantly share code, notes, and snippets.

Zoltan Altfatter altfatterz

Block or report user

Report or block altfatterz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View application-jboss.properties
spring.datasource.jndi-name=java:jboss/datasources/MySQLDataSource
View Repositories.java
public interface PageRepository extends CrudRepository<Page, Long> {
}
public interface PortalRepository extends CrudRepository<Portal, Long> {
}
View Portal.java
@Entity
public class Portal extends AbstractPersistable<Long> {
private String name;
@OneToMany(mappedBy = "portal", cascade = CascadeType.ALL)
private List<Page> pages;
...
}
View Page.java
@Entity
public class Page extends AbstractPersistable<Long> {
private String name;
@ManyToOne
private Portal portal;
...
}
View Dev.java
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Profile("default")
public @interface Dev {
}
View backbase-external-logback.sh
java -jar target/configuration-with-spring-boot-0.0.1-SNAPSHOT.war --logging.config=backbase-logback.xml
View logging.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="com.backbase" level="INFO"/>
</configuration>
View backbase.properties
java -jar target/configuration-with-spring-boot-0.0.1-SNAPSHOT.war --spring.config.name=backbase
View jboss-jndi-binding.sh
$ ./jboss-cli.sh -c "/subsystem=naming/binding=java\:\/greeting.name:add(binding-type=simple,value=Backbase)"
{"outcome" => "success"}
$ ./jboss-cli.sh -c "reload"
View environment-variable.sh
GREETING_NAME="Dexter" java -jar target/configuration-with-spring-boot-0.0.1-SNAPSHOT.war
You can’t perform that action at this time.