successfully configured nflow
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
package zw.qantra.tm;
|
||||
|
||||
import io.nflow.rest.config.RestConfiguration;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
@SpringBootApplication
|
||||
@Import(RestConfiguration.class)
|
||||
public class TmApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -29,7 +29,9 @@ public class SecurityConfig {
|
||||
http
|
||||
.csrf(AbstractHttpConfigurer::disable)
|
||||
.authorizeHttpRequests(auth -> auth
|
||||
.requestMatchers("/auth/**").permitAll()
|
||||
.requestMatchers("/explorer/**").permitAll()
|
||||
.requestMatchers("/nflow/**").permitAll()
|
||||
.requestMatchers("/auth/**").permitAll()
|
||||
.requestMatchers("/public/**").permitAll()
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
|
||||
@@ -14,6 +14,6 @@ import lombok.Setter;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Setting extends BaseEntity {
|
||||
private String name;
|
||||
private String value;
|
||||
private String settingName;
|
||||
private String settingValue;
|
||||
}
|
||||
Reference in New Issue
Block a user